小编Tom*_*uer的帖子

Symfony2 - 更改迁移目录

如何更改config.yml中的默认迁移目录?现在我使用2个不同数据库连接的捆绑包,我想创建迁移文件并将它们存储在不同的目录中以使用该教义:迁移:migrate --em =捆绑包的依赖性中的任何函数.

例如:

doctrine:migrate:diff --em=whatever #creating a version file in the DoctrineMigrationsWhatever directory

php app/console doctrine:migrations:status --em=whatever # shows only the version files, that belong to the bundle
Run Code Online (Sandbox Code Playgroud)

migration doctrine bundle symfony

4
推荐指数
2
解决办法
5090
查看次数

标签 统计

bundle ×1

doctrine ×1

migration ×1

symfony ×1