fabian/doctrine-migrations-liquibase-zf

此包已被弃用且不再维护。作者建议使用fabiang/doctrine-migrations-liquibase-laminas包。

用于通过Doctrine创建Liquibase更改集的Zend Framework模块

v0.2.0 2020-06-19 11:15 UTC

This package is auto-updated.

Last update: 2021-09-20 15:08:51 UTC


README

未维护。有关Laminas模块的详细信息,请参阅fabiang/doctrine-migrations-liquibase-laminas

用于通过Doctrine创建Liquibase更改集的Zend Framework模块。

Latest Stable Version License

安装

是Composer新手?请阅读介绍。运行以下Composer命令

$ composer require --dev fabiang/doctrine-migrations-liquibase-zf=@dev

配置

通过将其添加到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