reddogs-at/reddogs-migrations

doctrine migrations enhanced with module specific migrations

0.1.1 2017-02-22 07:39 UTC

This package is not auto-updated.

Last update: 2022-05-14 06:55:24 UTC


README

Software License Build Status Scrutinizer Code Quality Coverage Status

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']
    )
]);