forked from wangziqi/gongxue-base
feat: use preset avatars and disable leaderboard by default
This commit is contained in:
10
supabase/migrations/202606300009_profile_avatar_presets.sql
Normal file
10
supabase/migrations/202606300009_profile_avatar_presets.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
alter table public.student_profiles
|
||||
add column if not exists avatar_preset text not null default 'male';
|
||||
|
||||
alter table public.student_profiles
|
||||
drop constraint if exists student_profiles_avatar_preset_check,
|
||||
add constraint student_profiles_avatar_preset_check
|
||||
check (avatar_preset in ('male', 'female'));
|
||||
|
||||
comment on column public.student_profiles.avatar_preset is
|
||||
'Student profile preset avatar choice. User-uploaded avatars are intentionally unsupported.';
|
||||
@@ -30,7 +30,7 @@ on conflict (tenant_id) do nothing;
|
||||
insert into public.tenant_settings (tenant_id, feature_flags, admin_feature_flags, public_config)
|
||||
values (
|
||||
'00000000-0000-0000-0000-000000000001',
|
||||
'{"enableStore":true,"enableLeaderboard":true,"enableVocabulary":true,"enableHandbook":true,"enableScoreline":true}'::jsonb,
|
||||
'{"enableStore":true,"enableLeaderboard":false,"enableVocabulary":true,"enableHandbook":true,"enableScoreline":true}'::jsonb,
|
||||
'{"enableTenantManagement":true,"enableQuestionCRUD":true,"enableRevenueLedger":true,"enableMarketing":true}'::jsonb,
|
||||
'{"examDate":"","appUrl":"http://127.0.0.1:5173"}'::jsonb
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user