Files
archie/internal/platform/pg/migrations
sam 911152c9d1 merge: proposals module (#1995)
# Conflicts:
#	internal/platform/pg/migrations/00008_drafts.sql
#	modules/drafts/drafts.go
#	modules/drafts/internal/store/store.go
2026-11-24 03:11:07 +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.