From 833aa7ec372df4bbd77100f5f0d709ef653af90c Mon Sep 17 00:00:00 2001 From: tknkaa Date: Fri, 18 Sep 2026 20:35:15 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AD=98=E5=9C=A8=E3=81=97=E3=81=AA?= =?UTF-8?q?=E3=81=84ConjugationProgress=E3=83=86=E3=83=BC=E3=83=96?= =?UTF-8?q?=E3=83=AB=E3=81=B8=E3=81=AEDROP=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ConjugationProgressはschema.prismaに定義されたことがなく、正規のmigration historyには一度もCREATE TABLEが含まれていない(ローカル環境でのみ存在してい たテーブル)。そのためmigrate deployをmigration historyのみから積み上げた 環境(本番など)で実行すると、存在しないテーブルへのDROPでP3009エラーとなり デプロイがcrashloopしていた。 --- .../migration.sql | 5 ----- 1 file changed, 5 deletions(-) diff --git a/prisma/migrations/20260914000000_replace_conjugation_progress_with_section_progress/migration.sql b/prisma/migrations/20260914000000_replace_conjugation_progress_with_section_progress/migration.sql index ee0c299..e9d77a7 100644 --- a/prisma/migrations/20260914000000_replace_conjugation_progress_with_section_progress/migration.sql +++ b/prisma/migrations/20260914000000_replace_conjugation_progress_with_section_progress/migration.sql @@ -1,8 +1,3 @@ --- DropTable -PRAGMA foreign_keys=off; -DROP TABLE "ConjugationProgress"; -PRAGMA foreign_keys=on; - -- CreateTable CREATE TABLE "SectionProgress" ( "id" TEXT NOT NULL PRIMARY KEY,