File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ # GitDoctrineMigrationBundle
2+
3+ GitDoctrineMigrationBundle is a helper for managing doctrine migrations and git branches.
4+
5+ ## Installation
6+ Add the dependency:
7+
8+ ```
9+ composer require raphaelvigee/git-doctrine-migration-bundle dev-master
10+ ```
11+
12+ Register in ` AppKernel.php ` :
13+ ``` php
14+ $bundles = [
15+ ...
16+ new RaphaelVigee\GitDoctrineMigrationBundle\RaphaelVigeeGitDoctrineMigrationBundle(),
17+ ...
18+ ];
19+ ```
20+
21+ ## Usage:
22+
23+ ### Prepare checkout:
24+ ```
25+ bin/console doctrine:migrations:prepare-checkout <target>
26+ ```
27+
28+ _ The \< target> should be a branch name (example: ` master ` )_
29+
30+ An SQL dump is created under ` var/git-doctrine-migration `
31+
32+ ### Restore:
33+
34+ ```
35+ bin/console doctrine:migrations:restore
36+ ```
37+
38+ Restores the SQL dump corresponding to the current commit
You can’t perform that action at this time.
0 commit comments