fabiang / doctrine-migrations-liquibase-laminas
Laminas module for creating changesets for Liquibase with Doctrine
Requires
- php: ^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0
- doctrine/doctrine-module: ^3.0 || ^4.0 || ^5.0 || ^6.0
- doctrine/orm: ^2.5
- fabiang/doctrine-migrations-liquibase: ^2.0
- laminas/laminas-modulemanager: ^2.8
- laminas/laminas-servicemanager: ^3.0
- symfony/console: ^4.0 || ^5.0 || ^6.0 || ^7.0
Requires (Dev)
- phpspec/prophecy-phpunit: ^2.0
- phpunit/phpunit: ^9.5 || ^10.0
Replaces
This package is auto-updated.
Last update: 2024-10-24 14:31:11 UTC
README
Laminas module for creating changesets for Liquibase with Doctrine.
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.