Files
immich-redaktions-plugin/drizzle-history/pre-squash-2026-08/meta/_journal.json
T
Leon Tonhäuser 0b65fbba16 fix: rebuild migration history as baseline so migrate works on prod
Squash the 13 historical migrations into one generated baseline whose
journal entry reuses the original 0000 timestamp: the migrator skips it
on every existing database (prod journal stuck at 0006) and applies it
only on fresh ones. Parity with the old chain verified via pg_dump diff
plus fresh/existing/prod-simulated drizzle-kit migrate runs. Historical
files move to drizzle-history/pre-squash-2026-08/ for integration tests
that exercise legacy migration behavior.

Also repair db tests that already failed before this change:
- raw SQL targeted users, but the table has always been "user"
- membership recheck mocked legacy getAsset.albums instead of searchPhotos
- audit rollback assertion walks drizzle's wrapped error cause chain
- keyset index probe pinned to NULLS LAST ordering, removing a planner
  cost tie-break that flipped with index creation order
2026-08-25 11:56:52 +02:00

97 lines
1.9 KiB
JSON

{
"version": "7",
"dialect": "postgresql",
"entries": [
{
"idx": 0,
"version": "7",
"when": 1786299825190,
"tag": "0000_initial",
"breakpoints": true
},
{
"idx": 1,
"version": "7",
"when": 1786303607054,
"tag": "0001_editorial_approval_notice",
"breakpoints": true
},
{
"idx": 2,
"version": "7",
"when": 1786354215684,
"tag": "0002_accounting_intents",
"breakpoints": true
},
{
"idx": 3,
"version": "7",
"when": 1786358492749,
"tag": "0003_stream_delivery",
"breakpoints": true
},
{
"idx": 4,
"version": "7",
"when": 1786363479515,
"tag": "0004_download_history_indexes",
"breakpoints": true
},
{
"idx": 5,
"version": "7",
"when": 1786379282947,
"tag": "0005_rate_limits",
"breakpoints": true
},
{
"idx": 6,
"version": "7",
"when": 1786410282719,
"tag": "0006_chubby_screwball",
"breakpoints": true
},
{
"idx": 7,
"version": "7",
"when": 1786410724623,
"tag": "0007_amused_franklin_storm",
"breakpoints": true
},
{
"idx": 8,
"version": "7",
"when": 1786411419497,
"tag": "0008_overjoyed_wrecking_crew",
"breakpoints": true
},
{
"idx": 9,
"version": "7",
"when": 1786455754414,
"tag": "0009_usage_created_at_index",
"breakpoints": true
},
{
"idx": 10,
"version": "7",
"when": 1787617368189,
"tag": "0010_two-factor",
"breakpoints": true
},
{
"idx": 11,
"version": "7",
"when": 1787620365940,
"tag": "0011_two-factor-verified",
"breakpoints": true
},
{
"idx": 12,
"version": "7",
"when": 1787621254728,
"tag": "0012_two-factor-plugin-fields",
"breakpoints": true
}
]
}