Skip to the content
Documentation

exp:upgradedatabase

No ratings yet

Available since Exponential 6.0.15 (in development, not in a release yet).

Summary

Upgrade stage 3, database: the schema and data steps on every engine (dry run unless --apply)

Usage

./console exp:upgradedatabase [options]
php bin/php/upgradedatabase.php [options]
./console exp:upgrade:database [options]

Aliases

exp:upgrade:database

Options

Option Value Description
--apply - Make the changes (the default is a dry run that lists them and changes nothing)
--dry-run - The default, accepted for scripts that pass it: list what would change, change nothing
--only required Only these steps (step ids, a comma list or repeated); an optional step runs only when named here
--skip required Never these steps (step ids, a comma list or repeated)
--format required text (default) or json (the machine output exp-upgrade/1)
--no-backup - Write without making a backup first
--backup-dir required Where the backup goes (default var/backup/upgrade); a directory <time> is made in it
--force-order - Run a stage although an earlier stage has pending steps
--fail-on-pending - Exit 1 when steps are still pending (for CI)
--force-no-backup - With --no-backup on a production installation: write without a backup all the same
--no-caption - Write without taking a caption first (the same as --no-backup); refused on production without --force-no-caption
--force-no-caption - With --no-caption on a production installation: write without a caption all the same

Standard options

Every script also takes the standard options of the script framework: --help, --quiet, --siteaccess, --debug, --colors, --no-colors, --logfiles, --no-logfiles, --verbose and --allow-root-user.

Source

bin/php/upgradedatabase.php, kernel/private/classes/commands/upgradedatabase.php

See also

Generated example: exp:upgradedatabase

Added to the reference for Exponential 6.0.15.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.