fix: add migrations for 10 missing User columns
viewSettings, weatherEnabled, weatherLat, weatherLon, weatherLocation, lightTheme, darkTheme, emailVerificationCode, mobileFontScale, and notificationsEnabled were in the Prisma schema but never had migrations, causing all profile saves to fail on the server. v1.51.4 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
39c0ac64fc
commit
b20591108e
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "my-weekly-todo-list",
|
"name": "my-weekly-todo-list",
|
||||||
"version": "1.51.3",
|
"version": "1.51.4",
|
||||||
"description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view",
|
"description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -0,0 +1,11 @@
|
|||||||
|
-- Add all missing User columns that were in schema but never migrated
|
||||||
|
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "lightTheme" JSONB;
|
||||||
|
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "darkTheme" JSONB;
|
||||||
|
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "emailVerificationCode" TEXT;
|
||||||
|
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "mobileFontScale" DOUBLE PRECISION NOT NULL DEFAULT 1.0;
|
||||||
|
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "viewSettings" JSONB;
|
||||||
|
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "weatherEnabled" BOOLEAN NOT NULL DEFAULT false;
|
||||||
|
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "weatherLat" DOUBLE PRECISION;
|
||||||
|
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "weatherLon" DOUBLE PRECISION;
|
||||||
|
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "weatherLocation" TEXT;
|
||||||
|
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "notificationsEnabled" BOOLEAN NOT NULL DEFAULT false;
|
||||||
Loading…
Reference in New Issue
Block a user