From 36d403cef5f689e1e945c7f6ce08251ec12c404e Mon Sep 17 00:00:00 2001 From: xCyanGrizzly Date: Wed, 18 Feb 2026 16:07:28 +0100 Subject: [PATCH] fix: track migration_lock.toml required by prisma migrate deploy The migration_lock.toml was excluded by a gitignore pattern (prisma/migrations/**/migration_lock.toml) which caused `prisma migrate deploy` to fail in CI with no lock file present. Prisma requires this file to be version-controlled. Co-Authored-By: Claude Opus 4.6 --- .gitignore | 6 ++---- prisma/migrations/migration_lock.toml | 3 +++ 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 prisma/migrations/migration_lock.toml diff --git a/.gitignore b/.gitignore index 4dcb725..b1f8891 100644 --- a/.gitignore +++ b/.gitignore @@ -42,11 +42,9 @@ yarn-error.log* *.tsbuildinfo next-env.d.ts -# prisma -prisma/migrations/**/migration_lock.toml +# prisma — generated client (regenerated by `prisma generate`) +/src/generated/prisma # ide .idea .vscode - -/src/generated/prisma diff --git a/prisma/migrations/migration_lock.toml b/prisma/migrations/migration_lock.toml new file mode 100644 index 0000000..044d57c --- /dev/null +++ b/prisma/migrations/migration_lock.toml @@ -0,0 +1,3 @@ +# Please do not edit this file manually +# It should be added in your version-control system (e.g., Git) +provider = "postgresql"