diff --git a/acrate-core/migrations/2024-11-09-084403_Add nodeinfo table/down.sql b/acrate-core/migrations/2024-11-09-084403_Add nodeinfo table/down.sql new file mode 100644 index 0000000..2111f46 --- /dev/null +++ b/acrate-core/migrations/2024-11-09-084403_Add nodeinfo table/down.sql @@ -0,0 +1 @@ +DROP TABLE nodeinfo; \ No newline at end of file diff --git a/acrate-core/migrations/2024-11-09-084403_Add nodeinfo table/up.sql b/acrate-core/migrations/2024-11-09-084403_Add nodeinfo table/up.sql new file mode 100644 index 0000000..c21c18f --- /dev/null +++ b/acrate-core/migrations/2024-11-09-084403_Add nodeinfo table/up.sql @@ -0,0 +1,9 @@ +CREATE TABLE nodeinfo ( + nodeinfo_schema VARCHAR NOT NULL, + nodeinfo_href VARCHAR NOT NULL, + nodeinfo_data JSON NOT NULL, + + last_updated TIMESTAMP NOT NULL, + + PRIMARY KEY(nodeinfo_href) +);