raphaelvigee / GitDoctrineMigrationBundle

Helper for managing doctrine migrations and git branches.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

$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

About

Helper for managing doctrine migrations and git branches.


Languages

Language:PHP 100.0%