Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Migrations in the administration

Where the migrations of an installation show in the administration - Setup > Migrations, the dashboard block and the website sidebar - which page explains what, and which policy each needs.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/migrations/in-the-administration.md

On this page

Migrations in the administration

Migrations are changes to an installation written once as files and applied to every installation of the site in the same order (Migrations). The administration shows them and runs them in Setup > Migrations (the module migration), and shows their state in a dashboard block and in the website sidebar.

Contents

  1. The pages
  2. Who may do what
  3. Runs started here
  4. What is done on the console
  5. Related pages

The pages

PageAddressWhat it helps you doHelp
Status/migration/statussee every migration and its state, the lock, the latest runsThe status and the history
History/migration/historyevery run with its captions, commit, tag and push; resume and roll backThe history
A run's page/migration/log/<run-id>its record, its migrations, its run log, and its progress while it goes onThe page of a run
Dry run/migration/dryrunwhat a run would change; Simulate runs it in a transaction that is rolled backDry run
Run/migration/runrun the pending migrations, chosen one by oneRun
Rollback/migration/rollback/<target>take a run, one migration or an earlier caption backRoll back
Recording/migration/recording, /migration/recording/<id>record changes made by hand, a site-wide window, Generate migrationRecording changes
Editor/migration/editor, /migration/editor/<migration-id>write a YAML migration with forms, check, preview, saveThe migration editor
Remotes/migration/remotes, /migration/remote/<id>the installations this one deploys its migrations to: the wizard, Test connectionAdd a remote step by step
Deploys/migration/deploy, /migration/deployment/<deploy-id>deploy to remotes all at once or stage by stage, follow every remote live, the history, a gate, a rollbackDeploy step by step
Dashboard blockthe dashboardpending, failed, orphans, the run going on and the last runThe dashboard block
Website sidebarthe site's own pagesthe same state, read-onlyMigrations in the website sidebar

The status also lists the kernel's upgrade steps first, as migrations of the source kernel: a run applies the pending ones of the stages database and scripts before the site's migrations (The steps among the migrations).

Who may do what

PolicyAllows
migration/readthe status, the history, the page of a run, the dry run, the dashboard block
migration/runrun, resume, and simulate in the dry run
migration/rollbacktake a run, one migration or an earlier caption back
migration/editthe Recording page and Generate migration, and the migration editor
migration/remotesadd, change and remove the remotes deploys go to, and test their connection
migration/deploydeploy to remotes, approve the gate of a staged deploy, roll a deploy back

Only the Administrator role has them in a new installation. Run, resume, simulate and rollback ask "Verify it's you" first. The policies in detail: Policies of the migration module; every view, policy and event in one place: Policies, views and events.

Runs started here

A run, a resume or a rollback started in the administration runs in the background: the page starts the console command (exp:migration:migrate --apply, exp:migration:resume --apply or exp:migration:rollback --apply) as a process of its own, as the signed-in user, and opens the run's page, which follows it live. The run goes on when the page is closed. Its files are in var/<site>/migration/jobs/. It needs proc_open and a PHP command line binary (migration.ini [AdminSettings] PhpCliPath); without them the page says so, and the console runs it. One run at a time: while one goes on, or exp:upgrade or another run holds the installation lock, the page refuses a new one.

What is done on the console

Migrations are files in migrations/ (or extension/<name>/migrations/). The administration writes YAML migrations (the editor, a recording); PHP, SQL and INI migrations, the generators from content, classes, roles, sections, settings and differences, and skeletons are made on the console with ./console exp:migration:generate (Generating migrations). The settings are in settings/migration.ini (Commands, Settings).

A tour of every page with screenshots: A tour of Setup > Migrations.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x