From 78f0e067b5bc973b1d1d91a6fd7b7f4fd1184663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Mon, 15 Jun 2026 01:49:28 +0200 Subject: [PATCH] fix(migrations): reference the mapped measurement_type enum in the reminders table The generated 0162 migration typed the measurement_reminders.measurement_type column as the Prisma enum name "MeasurementType" rather than its @@map'd Postgres type "measurement_type", so a fresh migrate deploy failed with 'type "MeasurementType" does not exist'. Unit typecheck passed (the generated client is unaffected); only a real-Postgres deploy surfaces it. Verified the full 0001-0166 chain applies clean against Postgres 16. --- prisma/migrations/0162_v1171_creds_reminders_labs/migration.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prisma/migrations/0162_v1171_creds_reminders_labs/migration.sql b/prisma/migrations/0162_v1171_creds_reminders_labs/migration.sql index 8a7615be6..528b98967 100644 --- a/prisma/migrations/0162_v1171_creds_reminders_labs/migration.sql +++ b/prisma/migrations/0162_v1171_creds_reminders_labs/migration.sql @@ -45,7 +45,7 @@ CREATE TABLE IF NOT EXISTS "measurement_reminders" ( "id" TEXT NOT NULL, "user_id" TEXT NOT NULL, "label" TEXT NOT NULL, - "measurement_type" "MeasurementType", + "measurement_type" "measurement_type", "interval_days" INTEGER, "rrule" TEXT, "anchor_date" TIMESTAMP(3),