fabiang/doctrine-migrations-liquibase-laminas

Laminas module for creating changesets for Liquibase with Doctrine

v1.2.0 2024-01-24 12:57 UTC

This package is auto-updated.

Last update: 2024-11-24 14:40:27 UTC


README

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.