chore(prisma): squash 50 migrations into single init
Replaces all 50 prior migrations with one fresh init.sql generated via `prisma migrate diff --from-empty --to-schema-datamodel`. Schema is unchanged; this is purely a consolidation of migration history. Result: - 50 → 1 migration (50 dirs deleted, 1 new init created) - 6304 → 6075 lines of migration SQL (-229; redundant ALTERs collapsed) - Fresh installs apply one transaction instead of 50 chained - 192 tables / 103 enums / 516 indexes — verified against current schema Verified locally: - prisma migrate reset → applied cleanly, seed succeeded - 193 tables in public schema (192 models + _prisma_migrations) - /api/health → database+redis ok - Login as admin@bnkops.ca → SUPER_ADMIN role returned - Authenticated GET /api/settings + /api/users → working Existing deployments need `prisma migrate reset` (acceptable: no production data of consequence currently).
This commit is contained in:
6075
api/prisma/migrations/20260416000000_init/migration.sql
Normal file
6075
api/prisma/migrations/20260416000000_init/migration.sql
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user