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

Migration settings

Every setting that shapes migrations in one place - the five blocks of migration.ini with their defaults and a link to each generated reference page, the settings in site.ini, dashboard.ini, audit.ini and cronjob.ini…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/migrations/settings.md

On this page

Migration settings

The settings of migrations are in settings/migration.ini. Never edit that file: an update replaces it. Put what you change in an override:

  • settings/override/migration.ini.append.php for the installation,
  • settings/siteaccess/<siteaccess>/migration.ini.append.php for one siteaccess,
  • extension/<extension>/settings/migration.ini.append.php in an extension (read while the extension is active).
<?php /* #?ini charset="utf-8"?
# settings/override/migration.ini.append.php on a development installation
[RepositorySettings]
Push=disabled
*/ ?>

Contents

  1. migration.ini
  2. Settings in other files
  3. Typical settings per environment
  4. Related pages

migration.ini

Block and settingDefaultWhat it does
[MigrationSettings] (reference)where migrations are found
Enabledenableddisabled finds no migrations at all
DirectoryList[]migrationsthe site's migration folders; the first is where exp:migration:generate writes
ExtensionDirectorymigrationsthe folder inside every active extension and every installed package
[RunSettings] (reference)how a run behaves
RunAsUseradminthe login a console run runs as (a run in the administration runs as the signed-in user)
StopOnFailureenabledstop at the first failure; disabled goes on with migrations that do not require the failed one
Throttleemptyshipped empty; the 6.0.15 runner does not read it (pause inside a long migration yourself, see Large data migrations)
[CaptionSettings] (reference)the safe points around a run
Beforeenableda caption (kind migration-pre) before every run
Afterenableda caption (kind migration-post) after a run that passed
ReuseUnchangedenabledreuse the newest caption while nothing has changed since
ReuseIgnoreTableList[]exp_migration, exp_migration_run, expupgrade_step, ezsession, expaudit_*tables the reuse check leaves out
RestoreOnFailureenabledrestore the pre caption after a failure
RestoreParts[]database, storage, settingsthe parts of a caption that restore puts back
CodeTreeList[]settings, extension, designtrees checked for uncommitted changes before --apply
BackupDirectoryempty (var/backup/upgrade)where captions made without git_manager are kept
[RepositorySettings] (reference)the record in git
Modesitesite: the installation's own checkout; separate: a repository of its own at Path
Pathmigrationsthe folder of the status files and run logs
Remoteoriginthe remote to push to; empty: no push
Branchemptythe branch to commit on; empty: the current one
Commit, Tag, Pushenabledcommit the record, tag the commit, push both
TagPatternmigrations/<environment>/<run-id>the tag name; placeholders <environment>, <run-id>, <date>
[AdminSettings] (reference)runs started in Setup > Migrations
PhpCliPathemptythe PHP command line binary that runs them in the background
JobHistory50how many runs keep their files in var/<site>/migration/jobs/
LogBytes262144how much of the end of a run log a page shows

Every setting with its full comment: the blocks of migration.ini. An extension can point ExtensionDirectory elsewhere: the extension points of migration.ini.

Settings in other files

File and blockSettingFor migrations
site.ini [AdminEnvironment] (reference)Levelthe environment of the installation (development, test, staging, production; auto reads EXP_ENV), which the header line environments: and the status file name use
site.ini [ReauthGroup_system] (reference)"Verify it's you" before a run, a resume, a simulation and a rollback in the administration
dashboard.ini [DashboardBlock_migrations] (reference)PolicyList[]the dashboard block, for users with migration/read
audit.ini [AuditEventSettings] (reference)Enabled[]the audit events system.migration.run, .apply, .fail, .rollback, .caption, .push
cronjob.ini [CronjobPart-migrationpush] (reference)Scripts[]the part that pushes runs whose push failed (the cronjob part)
upgrade.ini [UpgradeSettings] (reference)ExtensionStepList[]an extension's upgrade steps, which are listed among the migrations as source kernel

Typical settings per environment

DevelopmentStagingProduction
[AdminEnvironment] Leveldevelopmentstagingproduction
[RepositorySettings] Pushdisabled (or --no-push)enabledenabled
[CaptionSettings] Before, Afterenabled (cheap on SQLite)enabledenabled
[CaptionSettings] RestoreOnFailureenabledenabledenabled
[RunSettings] RunAsUseradmina dedicated administrator logina dedicated administrator login

A setting that differs per environment goes in the environment's own override (for example the variant files of EXP_ENV, settings/override/site.ini.prod.append.php), never in a migration: migrations are the same files on every installation (Per-environment 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