Skip to content

Commit

Permalink
Add db migration files
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Indik <[email protected]>
  • Loading branch information
gabriel-indik committed Sep 13, 2024
1 parent f745212 commit ce8c723
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
BEGIN;

DROP TABLE registry;

COMMIT;
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
BEGIN;

CREATE TABLE registry (
"node" TEXT NOT NULL,
"transport" TEXT NOT NULL,
"transport_details" TEXT NOT NULL,
PRIMARY KEY ("node","transport")
);

CREATE UNIQUE INDEX node_transport ON registry("node","transport");

COMMIT;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP TABLE registry;
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CREATE TABLE registry (
"node" TEXT NOT NULL,
"transport" TEXT NOT NULL,
"transport_details" TEXT NOT NULL,
PRIMARY KEY ("node","transport")
);

CREATE UNIQUE INDEX node_transport ON registry("node","transport");

0 comments on commit ce8c723

Please sign in to comment.