exp:explovestack
Check an installation coming from LoveStack (read-only), and record its database as Exponential's (migrate).
Script bin/php/explovestack.php, code in kernel/private/classes/commands/explovestack.php. Run it from the installation root, as the user the web server runs as:
./console exp:explovestack --help
./console exp:lovestack --help
php bin/php/explovestack.php --helpHelp text
Sites coming from LoveStack (mugoweb/ezpublish-legacy)
check lists what this installation and its database bring along from LoveStack:
the database version row, LoveStack's db-schema-version row, a unique
index on ezuser.login, data_text NOT NULL, the legacy_2018 extension,
LoveStack-only settings in settings/override and the siteaccesses, and
the LoveStack package in composer.json. Reads only, writes nothing.
migrate records a LoveStack database as Exponential's: the version row
'lovestack' becomes this release's version, and LoveStack's schema
version is kept as ezsite_data lovestack-schema-version. Then it
prints the settings to rename or remove. Never changes content or
settings. A dry run unless --apply is given; running it again
changes nothing. Refuses a database that does not come from LoveStack.
./console exp:lovestack check
./console exp:lovestack check --json
./console exp:lovestack migrate (dry run: prints what it would write)
./console exp:lovestack migrate --apply
Exit code: check 0 nothing to do, 1 something needs attention (status found);
migrate 0 done or nothing to do, 1 refused; 2 usage error.
Guide: doc/eng-us/guides/upgrading.md (Coming from LoveStack)Options
| Option | Value | Help |
|---|---|---|
--json | One JSON object instead of the text | |
--dry-run | migrate: print what would be written, write nothing (the default) | |
--apply | migrate: write the two ezsite_data rows |
Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Arguments: [ACTION].
Related
Generated by ./console exp:help:examples from bin/php/explovestack.php, kernel/private/classes/commands/explovestack.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.