Download the PHP package claroline/migration-bundle without Composer
On this page you can find all versions of the php package claroline/migration-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download claroline/migration-bundle
More information about claroline/migration-bundle
Files in claroline/migration-bundle
Package migration-bundle
Short Description Claroline migration bundle
License GPL-3.0+
Homepage http://www.claroline.net
Informations about the package migration-bundle
README
WARNING
DEVELOPMENT HAS MOVED TO claroline/Distribution. THIS REPOSITORY IS NO LONGER MAINTAINED.
Doctrine Migrations integration bundle providing :
- Generation of migration classes on a per bundle basis
- Generation for multiple target platforms
- API allowing to execute migrations programmaticaly
Installation
Install the bundle with composer:
Then add the bundle to your application kernel:
Commands
You can generate migrations for a specific bundle using:
This command will create migration classes for all the available platforms in the Migrations directory of the bundle.
You can execute a migration using one of the following commands:
By default, both commands execute the nearest available migration version
(relatively to the current/installed one), but you can specify another target
using the --target
option:
where farthest means a full upgrade/downgrade.
The following command displays the list of available versions for a bundle and highlights the current/installed one:
Finally, you can delete generated migration classes which are above the current version of a bundle using:
This last command is useful if you intend to "merge" several migration classes generated during development into a single migration class. In such a case, the steps to follow would be:
API
The whole API is accessible through the migration manager class:
All versions of migration-bundle with dependencies
symfony/framework-bundle Version *
symfony/console Version ~2.0
symfony/twig-bridge Version ~2.0
symfony/twig-bundle Version ~2.0
doctrine/orm Version ~2.2
doctrine/migrations Version ~1.3
jdorn/sql-formatter Version ~1.0
psr/log Version ~1.0
claroline/kernel-bundle Version ~6.0