Skip to content

Releases

Releases

bolt build writes the release to .norbital/: the compiled workspace, its client bundle and its migrations. A release never changes; a fix is a new release. Any host serves the same release, on any machine.

Schema changes

When a model's fields change, bolt build writes the next SQL migration to migrations/, replays the whole history on a fresh database and checks that the result matches your models. Commit the SQL, snapshot.json, migrations.lock.json and physical.json with the source. A step that drops data needs an -- accept: <step-id> line. To rename a field or a model without losing its data, add was: 'old_name'.

You may edit the generated SQL, for example to fill a new column from old ones; the replay still proves the result. A migration that has run never changes: a fix is a new migration.