From aa036ed5d7560d6088238ff524c73354271acdb0 Mon Sep 17 00:00:00 2001 From: jake Date: Sat, 18 Feb 2023 18:06:40 -0700 Subject: [PATCH] oh yeah I kinda need this migration --- .../postgres/migrations/V0013__room2.sql | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/entity/gateway/postgres/migrations/V0013__room2.sql diff --git a/src/entity/gateway/postgres/migrations/V0013__room2.sql b/src/entity/gateway/postgres/migrations/V0013__room2.sql new file mode 100644 index 0000000..f7a6a0a --- /dev/null +++ b/src/entity/gateway/postgres/migrations/V0013__room2.sql @@ -0,0 +1,17 @@ +drop table room_note; +drop table room; + +create table room ( + id serial primary key not null, + name varchar(32) not null, + section_id "char" not null, + mode "char" not null, + episode "char" not null, + difficulty "char" not null +); + +create table room_note ( + room integer references room (id) not null, + note jsonb not null, + created_at timestamptz default current_timestamp not null +);