rDrama/migrations/20230318-expand-emoji-submi...

8 lines
314 B
MySQL
Raw Normal View History

2023-03-18 14:53:00 +00:00
update modactions set kind=replace(kind, 'marsey', 'emoji') where kind like '%marsey%';
alter table marseys rename to emojis;
alter table emojis add column kind varchar(15) not null default 'Marsey';
alter table emojis alter column kind drop default;
create index emoji_kind on public.emojis using btree (kind);