fabiang / doctrine-migrations-liquibase-laminas
Laminas模块,用于使用Doctrine创建Liquibase的变更集
v1.2.0
2024-01-24 12:57 UTC
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-08-24 14:12:02 UTC
README
Laminas模块,用于使用Doctrine创建Liquibase的变更集。
安装
新用户Composer?阅读简介。运行以下Composer命令
$ composer require --dev fabiang/doctrine-migrations-liquibase-laminas
配置
将模块添加到config/development.config.php
以加载该模块
return [ 'modules' => [ /** order shouldn't matter here, but it 'DoctrineModule' should be loaded before **/ 'Fabiang\DoctrineMigrationsLiquibase', ], ];
如果您没有推荐的development.config.php
,也可以将其添加到application.config.php
。但是,您不应该在生产系统上激活该模块,因为那里不需要它。
使用
当您在项目中执行以下命令时,您应该会看到两个新的doctrine-module
命令:
./vendor/bin/doctrine-module list
- orm:liquibase:createchangelog
- orm:liquibase:creatediff
第一个命令创建整个变更日志XML文件,第二个命令只创建差异。
许可证
BSD-2-Clause。请参阅LICENSE.md。