forgot to commit migrations

feature/language-tags
Felix Ableitner 2021-04-16 18:21:29 +02:00
parent 067e487e9c
commit c1a686cf28
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,6 @@
ALTER TABLE comment DROP COLUMN language;
ALTER TABLE post DROP COLUMN language;
ALTER TABLE private_message DROP COLUMN language;
ALTER TABLE local_user DROP COLUMN discussion_languages;
ALTER TABLE local_user RENAME COLUMN interface_language TO lang;

View File

@ -0,0 +1,6 @@
ALTER TABLE comment ADD COLUMN language TEXT NOT NULL;
ALTER TABLE post ADD COLUMN language TEXT NOT NULL;
ALTER TABLE private_message ADD COLUMN language TEXT NOT NULL;
ALTER TABLE local_user ADD COLUMN discussion_languages TEXT[] NOT NULL;
ALTER TABLE local_user RENAME COLUMN lang TO interface_language;