feat: added compulsory tags
This commit is contained in:
11
supabase/migrations/20250609142130_add-compulsory-tags.sql
Normal file
11
supabase/migrations/20250609142130_add-compulsory-tags.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
alter table "public"."study_spaces" add column "power" text;
|
||||
alter table "public"."study_spaces" add column "volume" text;
|
||||
alter table "public"."study_spaces" add column "wifi" text;
|
||||
|
||||
update "public"."study_spaces" set "power" = 'Many' where "power" is null;
|
||||
update "public"."study_spaces" set "volume" = 'Quiet' where "volume" is null;
|
||||
update "public"."study_spaces" set "wifi" = 'Good' where "wifi" is null;
|
||||
|
||||
alter table "public"."study_spaces" alter column "power" set not null;
|
||||
alter table "public"."study_spaces" alter column "volume" set not null;
|
||||
alter table "public"."study_spaces" alter column "wifi" set not null;
|
||||
Reference in New Issue
Block a user