about summary refs log tree commit diff
path: root/web/converse/migrations/2018-04-14-140818_posts_only_in_posts/up.sql
diff options
context:
space:
mode:
Diffstat (limited to 'web/converse/migrations/2018-04-14-140818_posts_only_in_posts/up.sql')
-rw-r--r--web/converse/migrations/2018-04-14-140818_posts_only_in_posts/up.sql6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/converse/migrations/2018-04-14-140818_posts_only_in_posts/up.sql b/web/converse/migrations/2018-04-14-140818_posts_only_in_posts/up.sql
new file mode 100644
index 000000000000..07ff9a1196f6
--- /dev/null
+++ b/web/converse/migrations/2018-04-14-140818_posts_only_in_posts/up.sql
@@ -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;