MarseyWorld/migrations/20221213-is_banned_fkey.sql

5 lines
240 B
MySQL
Raw Normal View History

2022-12-13 22:02:53 +00:00
alter table users alter column is_banned drop default;
alter table users alter column is_banned drop not null;
update users set is_banned=null where is_banned=0;
create index fki_user_is_banned_fkey on public.users using btree (is_banned);