Skip to content

Commit 4c7be5b

Browse files
committed
refactor(migration): rename 'completed' column to 'triggerJobCompleted' in onboarding table
- Updated the SQL migration to remove the 'completed' column and replace it with 'triggerJobCompleted'. - Adjusted the update statement for clarity by removing unnecessary table aliases. - Ensured the migration aligns with recent changes in the onboarding model.
1 parent 317555e commit 4c7be5b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • packages/db/prisma/migrations/20250627180828_rename_completed_col

packages/db/prisma/migrations/20250627180828_rename_completed_col/migration.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
66
*/
77
-- AlterTable
8-
ALTER TABLE "Onboarding" AS o
8+
ALTER TABLE "Onboarding"
99
ADD COLUMN "triggerJobCompleted" BOOLEAN NOT NULL DEFAULT false;
1010

1111
-- Copy existing values from completed to triggerJobCompleted
12-
UPDATE "Onboarding" AS o SET "triggerJobCompleted" = o."completed";
12+
UPDATE "Onboarding" SET "triggerJobCompleted" = "completed";
1313

1414
-- Drop the old column
15-
ALTER TABLE "Onboarding" AS o DROP COLUMN "completed";
15+
ALTER TABLE "Onboarding" DROP COLUMN "completed";

0 commit comments

Comments
 (0)