Files
archie/internal/platform/pg/migrations
sam 30aa351eb6 feat(events,drafts): give sources an immutable id and a scope (#2127, #2027)
A source is keyed by a uuid, owned by the organisation or one person, and
labelled within that scope. The webhook path is a separate unique column, so
renaming either leaves stored events, event types, triggers, groups, mappings
and drafts alone. Delivery policies, sealed secrets and group keys use the id.
2026-11-24 02:43:51 +11:00
..

Migrations

One ordered series for the whole binary, applied once at boot by the owner role under an advisory lock. Each module's schema starts from one baseline file, NNNNN_<module>.sql. Until the first release, change a module's schema by editing its baseline and recreating the database. After the first release, add a file named NNNNN_<module>_<change>.sql and never edit one that has shipped.