Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/raphaelvigee/gitdoctrinemigrationbundle

Helper for managing doctrine migrations and git branches.
https://github.com/raphaelvigee/gitdoctrinemigrationbundle

doctrine doctrine-migrations helper symfony

Last synced: about 1 month ago
JSON representation

Helper for managing doctrine migrations and git branches.

Awesome Lists containing this project

README

        

# GitDoctrineMigrationBundle

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`:
```php
$bundles = [
...
new RaphaelVigee\GitDoctrineMigrationBundle\RaphaelVigeeGitDoctrineMigrationBundle(),
...
];
```

## Usage:

### Prepare checkout:
```
bin/console doctrine:migrations:prepare-checkout
```

_The \ 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