add(messaging): migration to prefix sql tables

This commit is contained in:
Tit Petric
2019-02-08 21:23:48 +01:00
parent 876a304def
commit 70bf874f4f
2 changed files with 17 additions and 1 deletions
File diff suppressed because one or more lines are too long
@@ -0,0 +1,16 @@
-- misc tables
ALTER TABLE attachments RENAME TO messaging_attachment;
ALTER TABLE mentions RENAME TO messaging_mention;
ALTER TABLE unreads RENAME TO messaging_unread;
-- channel tables
ALTER TABLE channels RENAME TO messaging_channel;
ALTER TABLE channel_members RENAME TO messaging_channel_member;
-- message tables
ALTER TABLE messages RENAME TO messaging_message;
ALTER TABLE message_attachment RENAME TO messaging_message_attachment;
ALTER TABLE message_flags RENAME TO messaging_message_flag;