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:
parent
bf02c70f74
commit
a90d1cc1a4
2 changed files with 7 additions and 0 deletions
|
@ -0,0 +1 @@
|
||||||
|
ALTER TABLE threads ADD COLUMN body TEXT NOT NULL DEFAULT '';
|
6
migrations/2018-04-14-140818_posts_only_in_posts/up.sql
Normal file
6
migrations/2018-04-14-140818_posts_only_in_posts/up.sql
Normal 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;
|
Loading…
Reference in a new issue