Skip to content

Commit

Permalink
Set empty phone value
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Sep 3, 2024
1 parent 0419154 commit 8b48b2c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/migrations/0057_stale_rogue.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
ALTER TABLE "data" ALTER COLUMN "mission_groups" SET DEFAULT '{}';--> statement-breakpoint
UPDATE profile
SET phone = ''
WHERE phone IS NULL;
ALTER TABLE "profile" ALTER COLUMN "phone" SET NOT NULL;--> statement-breakpoint
ALTER TABLE "profile" ALTER COLUMN "agency_admin" SET NOT NULL;
ALTER TABLE "profile" ALTER COLUMN "agency_admin" SET NOT NULL;

0 comments on commit 8b48b2c

Please sign in to comment.