reddogs-at / reddogs-migrations
doctrine migrations enhanced with module specific migrations
0.1.1
2017-02-22 07:39 UTC
Requires
- php: ^7.0
- doctrine/migrations: ^1.5
- doctrine/orm: ^2.5
Requires (Dev)
- phpunit/phpunit: ^6.0
This package is not auto-updated.
Last update: 2022-05-14 06:55:24 UTC
README
Doctrine migrations enhanced with module specific migrations. Allows to to combine migrations of independent modules.
Installation
composer require reddogs-at/reddogs-migrations
Configuration
<?php use Doctrine\ORM\EntityManager; use Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper; use Reddogs\Migrations\Tools\Console\Helper\ConfigurationHelper; $container = require 'config/container.php'; $config = $container->get('config'); return new \Symfony\Component\Console\Helper\HelperSet([ 'connection' => new ConnectionHelper( $container->get(EntityManager::class)->getConnection() ), 'configuration' => new ConfigurationHelper( $container->get(EntityManager::class)->getConnection(), null, $config['doctrine']['reddogs_migrations'] ) ]);