2017 © Pedro Peláez
 

library migrations

Symfony bundle providing commands for transactional Doctrine database migrations

image

shopsys/migrations

Symfony bundle providing commands for transactional Doctrine database migrations

  • Monday, July 16, 2018
  • by sustmi
  • Repository
  • 7 Watchers
  • 3 Stars
  • 4,839 Installations
  • PHP
  • 6 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 26 Versions
  • 39 % Grown

The README.md

About

Build Status Downloads, (*1)

This bundle provides commands which can be useful for database migrations: * shopsys:migrations:check-mapping checks if ORM mapping is valid. * shopsys:migrations:check-schema checks if database schema is satisfying ORM. * shopsys:migrations:count returns count of migrations to execute. * shopsys:migrations:migrate executes all database migrations in one transaction. * the command supports installing migrations from multiple sources, so every bundle can have its own migrations * it creates a migration-lock.yml file in the project's root, persisting the order of execution * migrations can be manually reordered or skipped if necessary * shopsys:migrations:generate generates database migrations if the schema was changed * the command does not generate migrations that break backwards compatibility - eg. column dropping * prompts you to choose the location for migration file if you are developing more than one bundle, (*2)

This bundle uses DoctrineMigrationsBundle, so you have to install both., (*3)

This repository is maintained by shopsys/shopsys monorepo, information about changes is in monorepo CHANGELOG.md., (*4)

To be able to use this bundle, you need to do following:

  1. Require shopsys/migrations in composer.json
  2. Register bundles in your AppKernel.php:, (*5)

    new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),
    new Shopsys\MigrationBundle\ShopsysMigrationBundle(),
    
  3. Configure DoctrineMigrationsBundle according to its documentation (see https://symfony.com/doc/current/bundles/DoctrineMigrationsBundle/index.html#configuration)

Contributing

Thank you for your contributions to Shopsys Migrations package. Together we are making Shopsys Framework better., (*6)

This repository is READ-ONLY. If you want to report issues and/or send pull requests, please use the main Shopsys repository., (*7)

Please, check our Contribution Guide before contributing., (*8)

Support

What to do when you are in troubles or need some help? The best way is to join our Slack., (*9)

If you want to report issues, please use the main Shopsys repository., (*10)

The Versions

12/04 2018

v7.0.0-alpha1

7.0.0.0-alpha1

Symfony bundle providing commands for transactional Doctrine database migrations

  Sources   Download

MIT

The Requires

 

The Development Requires

orm database migrations schema doctrine migrate

29/03 2018

dev-ph-travis

dev-ph-travis

Symfony bundle providing commands for transactional Doctrine database migrations

  Sources   Download

MIT

The Requires

 

The Development Requires

orm database migrations schema doctrine migrate

19/02 2018

v2.3.0

2.3.0.0

Symfony bundle providing commands for transactional Doctrine database migrations

  Sources   Download

MIT

The Requires

 

The Development Requires

orm database migrations schema doctrine migrate

15/02 2018

dev-ss-documentation-github

dev-ss-documentation-github

Symfony bundle providing commands for transactional Doctrine database migrations

  Sources   Download

MIT

The Requires

 

The Development Requires

orm database migrations schema doctrine migrate

13/09 2017

dev-test

dev-test

Symfony bundle providing commands for transactional Doctrine database migrations

  Sources   Download

MIT

The Requires

 

The Development Requires

orm database migrations schema doctrine migrate

18/08 2017

dev-tl-check-orm-mapping-command

dev-tl-check-orm-mapping-command

Symfony bundle providing commands for transactional Doctrine database migrations

  Sources   Download

MIT

The Requires

 

The Development Requires

orm database migrations schema doctrine migrate

18/08 2017

v2.2.0

2.2.0.0

Symfony bundle providing commands for transactional Doctrine database migrations

  Sources   Download

MIT

The Requires

 

The Development Requires

orm database migrations schema doctrine migrate

07/06 2017

dev-pj-namespace-change

dev-pj-namespace-change

Symfony bundle providing commands for transactional Doctrine database migrations

  Sources   Download

MIT

The Requires

 

The Development Requires

orm database migrations schema doctrine migrate

07/06 2017

v2.1.1

2.1.1.0

Symfony bundle providing commands for transactional Doctrine database migrations

  Sources   Download

MIT

The Requires

 

The Development Requires

orm database migrations schema doctrine migrate

05/06 2017

v2.1.0

2.1.0.0

Symfony bundle providing commands for transactional Doctrine database migrations

  Sources   Download

MIT

The Requires

 

The Development Requires

orm database migrations schema doctrine migrate

15/03 2017

v2.0.2

2.0.2.0

Symfony bundle providing commands for transactional Doctrine database migrations

  Sources   Download

MIT

The Requires

 

The Development Requires

orm database migrations schema doctrine migrate