created emoji_reaction table migration
Signed-off-by: Samuel Hawksby-Robinson <samuel@samyoul.com>
This commit is contained in:
parent
961c00069b
commit
57319599de
|
@ -1,3 +0,0 @@
|
|||
ALTER TABLE user_messages ADD COLUMN emoji_reaction_target VARCHAR;
|
||||
ALTER TABLE user_messages ADD COLUMN emoji_reaction_type INT;
|
||||
ALTER TABLE user_messages ADD COLUMN emoji_reaction_retraction_target VARCHAR;
|
|
@ -0,0 +1 @@
|
|||
DROP TABLE emoji_reactions;
|
|
@ -0,0 +1,8 @@
|
|||
CREATE TABLE IF NOT EXISTS emoji_reactions (
|
||||
id VARCHAR PRIMARY KEY ON CONFLICT REPLACE,
|
||||
clock_value INT NOT NULL,
|
||||
source TEXT NOT NULL,
|
||||
emoji_id INT NOT NULL,
|
||||
message_id VARCHAR NOT NULL,
|
||||
retracted INT DEFAULT 0
|
||||
);
|
Loading…
Reference in New Issue