2017 © Pedro Peláez
 

symfony-bundle git-doctrine-migration-bundle

image

raphaelvigee/git-doctrine-migration-bundle

  • Friday, March 24, 2017
  • by raphaelvigee
  • Repository
  • 1 Watchers
  • 3 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

GitDoctrineMigrationBundle

GitDoctrineMigrationBundle is a helper for managing doctrine migrations and git branches., (*1)

Installation

Add the dependency:, (*2)

composer require raphaelvigee/git-doctrine-migration-bundle dev-master

Register in AppKernel.php:, (*3)

$bundles = [
    ...
    new RaphaelVigee\GitDoctrineMigrationBundle\RaphaelVigeeGitDoctrineMigrationBundle(),
    ...
];

Usage:

Prepare checkout:

bin/console doctrine:migrations:prepare-checkout <target>

The <target> should be a branch name (example: master), (*4)

An SQL dump is created under var/git-doctrine-migration, (*5)

Restore:

bin/console doctrine:migrations:restore

Restores the SQL dump corresponding to the current commit, (*6)

The Versions

24/03 2017

dev-master

9999999-dev

  Sources   Download

by Raphael Vigee