BetterFrame/server/src/shared/db
Mitchell R b93e9484ff
fix: drop FKs before UUID backfill, re-add after
SET CONSTRAINTS ALL DEFERRED only works on DEFERRABLE constraints.
Ours aren't. Instead: save all FK definitions to jsonb array, drop
them all, do the id replacements unconstrained, re-add from saved
definitions. Same pattern as the type-conversion migration.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-26 13:42:35 +02:00
..
config.ts refactor: decommission SQLite + add UUIDv7 PK migration for existing PG 2026-05-26 13:22:29 +02:00
db-adapter.ts refactor: decommission SQLite + add UUIDv7 PK migration for existing PG 2026-05-26 13:22:29 +02:00
init.ts refactor: decommission SQLite + add UUIDv7 PK migration for existing PG 2026-05-26 13:22:29 +02:00
mappers.ts feat: implement multi-tenant support with PG schema isolation 2026-05-26 07:22:01 +02:00
migrations-pg.ts fix: drop FKs before UUID backfill, re-add after 2026-05-26 13:42:35 +02:00
pg-adapter.ts refactor: decommission SQLite + add UUIDv7 PK migration for existing PG 2026-05-26 13:22:29 +02:00
repository.ts refactor: decommission SQLite + add UUIDv7 PK migration for existing PG 2026-05-26 13:22:29 +02:00
util.ts fix(db): handle PG JSONB as native objects in j() mapper 2026-05-26 01:58:06 +02:00