mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 22:02:16 +00:00
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.
This commit is contained in:
1 parent
497982b4b4
commit
78f0e067b5
1 file changed
+1
-1
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user