The migration system was broken due to three issues:
1. Snapshot 0067 had an invalid `autoincrement` field (PostgreSQL doesn't
support this) causing Zod validation to fail with "data is malformed"
2. Migrations 0068 and 0069 were missing snapshot files, breaking the
snapshot chain required by `drizzle-kit generate`
3. Orphaned file 0048_mean_enchantress.sql existed outside the journal
Fixed by removing the invalid field, regenerating migrations 0068-0069
with proper snapshots via `drizzle-kit generate`, deleting the orphaned
file, and adding a no-op verification migration (0070). Made migration
0069 idempotent with IF EXISTS/IF NOT EXISTS guards for production safety.
Updated CLAUDE.md with rules to prevent manual migration/journal editing
and ensure snapshots are always generated.
https://claude.ai/code/session_01JuVHpRPa974MKSHoXNGkgU
2026-04-06 14:29:29 +00:00
Renamed from drizzle/0068_cs2_major_simulator.sql (Browse further)