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 eb674e2
Show file tree
Hide file tree
Showing 16 changed files with 48 additions and 57 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
);
5 changes: 0 additions & 5 deletions migrations_postgres/2023-09-07-131701_create_db/down.sql

This file was deleted.

22 changes: 0 additions & 22 deletions migrations_postgres/2023-09-07-131701_create_db/up.sql

This file was deleted.

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
);
6 changes: 0 additions & 6 deletions migrations_sqlite/2023-09-07-131701_create_db/down.sql

This file was deleted.

24 changes: 0 additions & 24 deletions migrations_sqlite/2023-09-07-131701_create_db/up.sql

This file was deleted.

0 comments on commit eb674e2

Please sign in to comment.