Publishing with a database
When an environment uses your own database, publishing also checks that the database matches the app version you are publishing. This feature is in beta .
Beta — ready to use, but some details may still change.
When an environment uses your own database, publishing also checks that the database matches the app version you are publishing. This feature is in beta.
The Database block
The publish dialog shows a Database block for the target environment (Production, or Staging for a staging deployment):
- Provider and version, and the database name.
- Target namespace, for example
mab_7f3a2c. - Schema: Application v34 / Database v33.
- Migration required: the pending changes.
- Existing tables modified: always NONE for app-managed changes.
Review Migration or Apply & Publish
- Review Migration opens the full migration review in the Data view, where you can read the SQL, download it, apply it or verify a migration you ran yourself.
- Apply & Publish (project admins) prepares the plan, asks you to type the database name, applies the migration and publishes when it succeeds. Plans that are destructive or need manual steps are sent to the review instead.
When publishing is blocked
The server checks the database before every publish. Publishing is blocked when a required migration has not been applied, when breaking drift exists, or when the runtime credential is missing. The dialog shows Publishing is blocked: the database check failed with the reasons. Fix them, then publish again.
Unpublishing or rolling back the app never changes the database. See Migrations.