Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/raphaelvigee/gitdoctrinemigrationbundle
- Owner: raphaelvigee
- Created: 2017-03-24T11:34:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-03-24T18:43:46.000Z (over 7 years ago)
- Last Synced: 2024-04-18T16:38:48.894Z (7 months ago)
- Topics: doctrine, doctrine-migrations, helper, symfony
- Language: PHP
- Homepage:
- Size: 8.79 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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