Download the PHP package carbon/automigrate without Composer
On this page you can find all versions of the php package carbon/automigrate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download carbon/automigrate
More information about carbon/automigrate
Files in carbon/automigrate
Package automigrate
Short Description Automatic node migrations for Neos CMS
License GPL-3.0-or-later
Informations about the package automigrate
Carbon.AutoMigrate
Sometimes, things change. This package helps you to migrate old installation to up-to-date installations. This help to run migrations after deployments.
Installation
This package is available via packagist. Run composer require carbon/automigrate --no-update
in your
site package. After that, run composer update
in your root directory.
How to use it
Add your node migrations version numbers to your Settings.yaml
:
Configure your stack to run ./flow node:automigrate
after ./flow doctrine:migrate
. The command will check if the
migrations are available, checks if the migrations has already been applied, and if not, the migrations get's applied.
Options
Run ./flow help node:automigrate
to see the options:
Aditional migration helper
RenamePropertyValuesMigration
This can be used to rename one or multiply property values. This is also possible with default yaml, but need many lines, if you have multiple values to change.
A migration could look like this:
RenameNodeTypesMigration
This can be used if you want to rename NodeTypes. This not only change the nodetype
in the table
neos_contentrepository_domain_model_nodedata
, it also set the siteresourcespackagekey
in
neos_neos_domain_model_site
if the node type match.
You have to create a PHP file in your package under Migrations/Mysql
The migration will automatically run if you run ./flow doctrine:migrations
.