Files
archie/internal/platform/pg/migrations

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.