raphaelvigee / git-doctrine-migration-bundle
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
This package is not auto-updated.
Last update: 2025-04-26 23:32:24 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