From be7b1ae3f70530d00eab729cf685549f62b11fb7 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 9 Nov 2024 09:52:32 +0100 Subject: [PATCH] `core`: Create `nodeinfo` table --- .../2024-11-09-084403_Add nodeinfo table/down.sql | 1 + .../2024-11-09-084403_Add nodeinfo table/up.sql | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 acrate-core/migrations/2024-11-09-084403_Add nodeinfo table/down.sql create mode 100644 acrate-core/migrations/2024-11-09-084403_Add nodeinfo table/up.sql 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) +);