raphaelvigee / git-doctrine-migration-bundle
There is no license information available for the latest version (dev-master) of this package.
Package info
github.com/raphaelvigee/GitDoctrineMigrationBundle
Type:symfony-bundle
pkg:composer/raphaelvigee/git-doctrine-migration-bundle
dev-master
2017-03-24 18:43 UTC
This package is not auto-updated.
Last update: 2026-03-01 03:48:11 UTC
README
GitDoctrineMigrationBundle is a helper for managing doctrine migrations and git branches.
Installation
Add the dependency:
composer require raphaelvigee/git-doctrine-migration-bundle dev-master
Register in AppKernel.php:
$bundles = [ ... new RaphaelVigee\GitDoctrineMigrationBundle\RaphaelVigeeGitDoctrineMigrationBundle(), ... ];
Usage:
Prepare checkout:
bin/console doctrine:migrations:prepare-checkout <target>
The <target> should be a branch name (example: master)
An SQL dump is created under var/git-doctrine-migration
Restore:
bin/console doctrine:migrations:restore
Restores the SQL dump corresponding to the current commit