Skip to content

Commit

Permalink
fix: initialize multiple databases
Browse files Browse the repository at this point in the history
Signed-off-by: Irene Diez <[email protected]>
  • Loading branch information
7flying committed Oct 3, 2023
1 parent 7585e98 commit 8650dce
Show file tree
Hide file tree
Showing 12 changed files with 48 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- This file should undo anything in `up.sql`

DROP TABLE manufacturer_vouchers;
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-- Your SQL goes here

CREATE TABLE manufacturer_vouchers (
guid varchar(36) NOT NULL PRIMARY KEY,
contents bytea NOT NULL
);
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP TABLE manufacturer_vouchers;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CREATE TABLE manufacturer_vouchers (
ov_guid varchar(36) PRIMARY KEY,
contents blob NOT NULL
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- This file should undo anything in `up.sql`

DROP TABLE owner_vouchers;
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- Your SQL goes here

CREATE TABLE owner_vouchers (
guid varchar(36) NOT NULL PRIMARY KEY,
contents bytea NOT NULL,
to2_performed boolean,
to0_accept_owner_wait_seconds bigint
);
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP TABLE owner_vouchers;
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CREATE TABLE owner_vouchers (
ov_guid varchar(36) NOT NULL PRIMARY KEY
contents blob NOT NULL,
to2_performed bool,
to0_accept_owner_wait_seconds bigint
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- This file should undo anything in `up.sql`

DROP TABLE rendezvous_vouchers;
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Your SQL goes here

CREATE TABLE rendezvous_vouchers (
guid varchar(36) NOT NULL PRIMARY KEY,
contents bytea NOT NULL,
ttl bigint
);
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP TABLE rendezvous_vouchers;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CREATE TABLE rendezvous_vouchers (
ov_guid varchar(36) NOT NULL PRIMARY KEY,
contents blob NOT NULL
ttl bigint
);

0 comments on commit 8650dce

Please sign in to comment.