mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-07-22 08:48:34 +00:00
Add journal-tracked migration 0258 for the recommendation_id index
Generated with drizzle-kit generate, then hand-edited to IF NOT EXISTS: the index already exists on the live DB (created CONCURRENTLY on 2026-07-02), so the migration must no-op there while still building the index in fresh environments. Snapshot + journal are updated so the next generated migration doesn't re-emit this index. Applying it (drizzle-kit migrate) remains a human action. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
b49fbc4265
commit
8e39c00ec8
3 changed files with 11786 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
-- IF NOT EXISTS: this index was already created on the live DB on 2026-07-02
|
||||
-- (CREATE INDEX CONCURRENTLY, outside the migration flow) to unblock a plan
|
||||
-- cleanup; there this migration must no-op. Fresh environments build it here.
|
||||
CREATE INDEX IF NOT EXISTS "idx_plan_recommendations_recommendation_id" ON "plan_recommendations" USING btree ("recommendation_id");
|
||||
11775
src/app/db/migrations/meta/0258_snapshot.json
Normal file
11775
src/app/db/migrations/meta/0258_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1800,6 +1800,13 @@
|
|||
"when": 1782999533851,
|
||||
"tag": "0257_low_songbird",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 258,
|
||||
"version": "7",
|
||||
"when": 1783009784235,
|
||||
"tag": "0258_plan_recommendations_rec_id_index",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue