Skip to content

Commit 064eb08

Browse files
committed
fix: hotfix for failing migration script
1 parent 1c407ae commit 064eb08

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

prisma/migrations/20260429132457_add_project_cursus_id/migration.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
- Added the required column `cursus_id` to the `Project` table.
55
66
*/
7-
-- Force resync of all projects to update the new `cursus_id` field
8-
UPDATE "Synchronization" SET "last_synced_at" = NULL WHERE "kind" = 'projects';
7+
-- Force resync of all projects to update the new `cursus_id` field by setting last_synced_at to 2010-01-01
8+
UPDATE "Synchronization" SET "last_synced_at" = '2010-01-01' WHERE "kind" = 'projects';
99

1010
-- AlterTable
1111
ALTER TABLE "Project" ADD COLUMN "cursus_id" INTEGER;

prisma/migrations/20260429133305_add_project_difficulty/migration.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
66
*/
77

8-
-- Force resync of all projects to update the new `difficulty` field
9-
UPDATE "Synchronization" SET "last_synced_at" = NULL WHERE "kind" = 'projects';
8+
-- Force resync of all projects to update the new `difficulty` field by setting last_synced_at to 2010-01-01
9+
UPDATE "Synchronization" SET "last_synced_at" = '2010-01-01' WHERE "kind" = 'projects';
1010

1111
-- AlterTable
1212
ALTER TABLE "Project" ADD COLUMN "difficulty" INTEGER;

0 commit comments

Comments
 (0)