Remove length restriction on Emoji field in a DMReaction; emojis can be >1 char, up to at least 3

This commit is contained in:
Alessio 2023-11-18 14:55:07 -08:00
parent 12a2dc9744
commit 46eaf913fd
2 changed files with 2 additions and 2 deletions

View File

@ -244,7 +244,7 @@ create table chat_message_reactions (rowid integer primary key,
message_id integer not null,
sender_id integer not null,
sent_at integer not null,
emoji text not null check (length(emoji) = 1),
emoji text not null,
foreign key(message_id) references chat_messages(id)
foreign key(sender_id) references users(id)
);

View File

@ -390,7 +390,7 @@ create table chat_message_reactions (rowid integer primary key,
message_id integer not null,
sender_id integer not null,
sent_at integer not null,
emoji text not null check (length(emoji) = 1),
emoji text not null,
foreign key(message_id) references chat_messages(id)
foreign key(sender_id) references users(id)
);