feat(migrations): Drop 'body' column from threads

As a data model simplification, the text of a thread's top post should
simply also go into the posts table.
This commit is contained in:
Vincent Ambo 2018-04-14 16:33:15 +02:00
parent bf02c70f74
commit a90d1cc1a4
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1 @@
ALTER TABLE threads ADD COLUMN body TEXT NOT NULL DEFAULT '';

View file

@ -0,0 +1,6 @@
-- Instead of storing the thread OP in the thread table, this will
-- make it a post as well.
-- At the time at which this migration was created no important data
-- existed in any converse instances, so data is not moved.
ALTER TABLE threads DROP COLUMN body;