create mysql migration

This commit is contained in:
Brian Cao 2022-07-27 23:16:16 -07:00
parent 6fbd566b29
commit 3e2c098c05
2 changed files with 50 additions and 1 deletions

View file

@ -39,7 +39,7 @@ ALTER INDEX "website.website_uuid_unique" RENAME TO "website_website_uuid_key";
update event
set "event_name" = event.event_value || '-' || event.event_type;
--Set event_name not null
-- Set event_name not null
ALTER TABLE "event" ALTER COLUMN "event_name" SET NOT NULL;
-- Drop old columns