fabiang/doctrine-migrations-liquibase-laminas

Laminas模块,用于使用Doctrine创建Liquibase的变更集

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

This package is auto-updated.

Last update: 2024-08-24 14:12:02 UTC


README

Laminas模块,用于使用Doctrine创建Liquibase的变更集。

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

安装

新用户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