summaryrefslogtreecommitdiff
path: root/migrations/20240904153315_channel.sql
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-10-04 22:12:15 -0400
committerOwen Jacobson <owen@grimoire.ca>2024-10-04 22:38:25 -0400
commitb422be184e01b4cc35b9c9a6921379080c24edb3 (patch)
treeb35bec7a4025e9874ba2683e3b9b8da4447c2fb0 /migrations/20240904153315_channel.sql
parent9bd6d9862b1c243def02200bca2cfbf578ad2a2f (diff)
Start fresh with database migrations.
The migration path from the original project inception to now was complicated and buggy, and stranded _both_ Kit and I with broken databases due to oversights and incomplete migrations. We've agreed to start fresh, once. If this is mistakenly started with an original-schema-flavour DB, startup will be aborted.
Diffstat (limited to 'migrations/20240904153315_channel.sql')
-rw-r--r--migrations/20240904153315_channel.sql20
1 files changed, 0 insertions, 20 deletions
diff --git a/migrations/20240904153315_channel.sql b/migrations/20240904153315_channel.sql
deleted file mode 100644
index e62b51f..0000000
--- a/migrations/20240904153315_channel.sql
+++ /dev/null
@@ -1,20 +0,0 @@
-create table channel (
- id text
- not null
- primary key,
- name text
- not null
- unique
-);
-
-create table channel_member (
- channel text
- not null
- references channel,
- login text
- not null
- references login,
- primary key (channel, login)
-);
-
-create index channel_member_login on channel_member (login);