Skip to content

Laminas module for creating changesets for Liquibase with Doctrine

License

Notifications You must be signed in to change notification settings

fabiang/doctrine-migrations-liquibase-laminas

Repository files navigation

fabiang/doctrine-migrations-liquibase-laminas

Laminas module for creating changesets for Liquibase with Doctrine.

Unit Tests Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

Installation

New to Composer? Read the introduction. Run the following Composer command:

$ composer require --dev fabiang/doctrine-migrations-liquibase-laminas

Configuration

Load the module by adding it to config/development.config.php:

return [
    'modules' => [
        /** order shouldn't matter here, but it 'DoctrineModule' should be loaded before **/
        'Fabiang\DoctrineMigrationsLiquibase',
    ],
];

If you don't have a recommended development.config.php you can also add it to application.config.php. But you should not activate the module on production systems, as you don't need it there.

Usage

You should see two new command for doctrine-module when you execute the following command in your project:

./vendor/bin/doctrine-module list
  • orm:liquibase:createchangelog
  • orm:liquibase:creatediff

First creates the whole changelog XML file, second command creates just the diff.

Licence

BSD-2-Clause. See the LICENSE.md.