Stable version with additional styling
This commit is contained in:
18
supabase/migrations/20260524200000_room_background.sql
Normal file
18
supabase/migrations/20260524200000_room_background.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
alter table public.avatar_state
|
||||
add column if not exists room_background text not null default 'room-day';
|
||||
|
||||
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',
|
||||
'room-space',
|
||||
'room-neon'
|
||||
)
|
||||
);
|
||||
@@ -0,0 +1,23 @@
|
||||
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');
|
||||
@@ -30,7 +30,9 @@ values
|
||||
('head-4', 'Head 4', 'head', 45, '/character/head/head-4.png'),
|
||||
('head-5', 'Head 5', 'head', 50, '/character/head/head-5.png'),
|
||||
('head-6', 'Head 6', 'head', 55, '/character/head/head-6.png'),
|
||||
('head-7', 'Head 7', 'head', 60, '/character/head/head-7.png')
|
||||
('head-7', 'Head 7', 'head', 60, '/character/head/head-7.png'),
|
||||
('room-night', 'Starlit Night', 'room', 40, ''),
|
||||
('room-forest', 'Mystic Forest', 'room', 50, '')
|
||||
on conflict (id) do update
|
||||
set
|
||||
name = excluded.name,
|
||||
|
||||
Reference in New Issue
Block a user