2025-03-29 12:50:08 +00:00
|
|
|
These SQL scripts are embedded in the binary.
|
|
|
|
|
|
|
|
|
|
Scripts in `schema/` are run at every startup, in alphanumerical order.
|
|
|
|
|
|
2025-08-30 13:18:31 +02:00
|
|
|
Scripts in `migrations/` are run when a migration is needed; they must begin
|
2025-03-29 12:50:08 +00:00
|
|
|
with a number that equals the schema version that results from that
|
2025-08-30 13:18:31 +02:00
|
|
|
migration. Only one script per schema version must exist.
|
|
|
|
|
Migrations are not run on initial database creation, so the scripts in `schema/`
|
|
|
|
|
should create the latest version.
|