Merge emoji and discord_file tables
Also fix duplicate reaction when reacting with custom emoji from Matrix
This commit is contained in:
4
database/upgrades/13-merge-emoji-and-file.postgres.sql
Normal file
4
database/upgrades/13-merge-emoji-and-file.postgres.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
-- v13: Merge tables used for cached custom emojis and attachments
|
||||
ALTER TABLE discord_file ADD CONSTRAINT mxc_unique UNIQUE (mxc);
|
||||
ALTER TABLE discord_file ADD COLUMN emoji_name TEXT;
|
||||
DROP TABLE emoji;
|
||||
Reference in New Issue
Block a user