Skip to content

Commit 544b33d

Browse files
committed
Update migration
1 parent 191c407 commit 544b33d

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ALTER TABLE "settings" ADD COLUMN "mothership_environment" text DEFAULT 'prod' NOT NULL;
1+
ALTER TABLE "settings" ADD COLUMN "mothership_environment" text DEFAULT 'default' NOT NULL;
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
ALTER TABLE "settings" ALTER COLUMN "mothership_environment" SET DEFAULT 'default';
1+
ALTER TABLE "settings" ALTER COLUMN "mothership_environment" SET DEFAULT 'default';
2+
--> statement-breakpoint
3+
UPDATE "settings" SET "mothership_environment" = 'default' WHERE "mothership_environment" = 'prod';

packages/db/migrations/meta/0205_snapshot.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9765,7 +9765,7 @@
97659765
"type": "text",
97669766
"primaryKey": false,
97679767
"notNull": true,
9768-
"default": "'prod'"
9768+
"default": "'default'"
97699769
},
97709770
"error_notifications_enabled": {
97719771
"name": "error_notifications_enabled",

0 commit comments

Comments
 (0)