fix(db): add locale repair migration hygiene guard

This commit is contained in:
2026-03-09 15:54:50 +04:00
parent 2d8e0491cc
commit 63a2677601
7 changed files with 113 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
ALTER TABLE "households" ADD COLUMN IF NOT EXISTS "default_locale" text DEFAULT 'ru' NOT NULL;--> statement-breakpoint
ALTER TABLE "members" ADD COLUMN IF NOT EXISTS "preferred_locale" text;--> statement-breakpoint

View File

@@ -64,6 +64,13 @@
"when": 1773047624171,
"tag": "0008_lowly_spiral",
"breakpoints": true
},
{
"idx": 9,
"version": "7",
"when": 1773055200000,
"tag": "0009_quiet_wallflower",
"breakpoints": true
}
]
}