5

config.yml のデフォルトの移行ディレクトリを変更するにはどうすればよいですか? 現在、異なる db 接続を持つ 2 つのバンドルを使用しています。移行ファイルを作成し、それらを異なるディレクトリに保存して、バンドルに依存する doctrine:migrations:migrate --em=whatever 関数を使用したいと考えています。

例えば:

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
4

3 に答える 3