fix(db): apply all migrations and schema in one transaction

This commit is contained in:
Jakob Borg
2025-08-31 12:43:41 +02:00
parent 21ad99c80a
commit e41d6b9c1e
4 changed files with 42 additions and 21 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ These SQL scripts are embedded in the binary.
Scripts in `schema/` are run at every startup, in alphanumerical order.
Scripts in `migrations/` are run when a migration is needed; the must begin
Scripts in `migrations/` are run when a migration is needed; they must begin
with a number that equals the schema version that results from that
migration. Migrations are not run on initial database creation, so the
scripts in `schema/` should create the latest version.