2017 © Pedro Peláez
 

symfony-bundle doctrine-migration-tools-bundle

image

a5sys/doctrine-migration-tools-bundle

  • Friday, June 8, 2018
  • by thomasbeaujean
  • Repository
  • 3 Watchers
  • 2 Stars
  • 2,149 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 4 Versions
  • 12 % Grown

The README.md

DoctrineMigrationToolsBundle

Tools for the doctrine migration bundle, (*1)

Installation

composer require a5sys/doctrine-migration-tools-bundle

Generate versions from schema file for the doctrine-migration

The diff command of doctrine generate the version file from the diff between your database and the current schema., (*2)

This command generate the version from the diff between the schema stored in a file and your current schema., (*3)

So you only have to run the command before doing a new version of your app., (*4)

php bin/console doctrine:migrations:diff-file

A version file will be generated (if required) and your current schema will be dumped in a file. (in /app/DoctrineMigrations/SchemaVersion), (*5)

You can automatically check that the migrations have been generated using the check option, (*6)

php bin/console doctrine:migrations:diff-file --check

The exit code 1 will be used if a migration should have been generated, (*7)

The Versions