Skip to content

Commit 2446e7e

Browse files
committed
Add README
1 parent 1c6567f commit 2446e7e

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

0 commit comments

Comments
 (0)