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;
|
||||
@@ -13,7 +13,6 @@ CREATE TABLE study_spaces (
|
||||
location text,
|
||||
building_location text,
|
||||
tags text[] NOT NULL DEFAULT array[]::text[],
|
||||
timing text NOT NULL,
|
||||
volume text NOT NULL,
|
||||
wifi text NOT NULL,
|
||||
power text NOT NULL,
|
||||
|
||||
Reference in New Issue
Block a user