Files
HaBit/supabase/migrations/20260524210000_room_background_four_only.sql
2026-05-24 01:43:59 -06:00

24 lines
568 B
SQL

alter table public.avatar_state
drop constraint if exists avatar_state_room_background_check;
alter table public.avatar_state
add constraint avatar_state_room_background_check
check (
room_background in (
'room-day',
'room-dusk',
'room-night',
'room-forest'
)
);
update public.avatar_state
set room_background = 'room-day'
where room_background in ('room-space', 'room-neon');
delete from public.user_items
where item_id in ('room-space', 'room-neon');
delete from public.shop_items
where id in ('room-space', 'room-neon');