LoginSignup
0
0

More than 1 year has passed since last update.

備忘録: Doctrine Migration のマイグレーションスクリプトを手元でデバッグする時

Posted at

何をしたいのか

マイグレーションスクリプトをデバッガーで確認したい。

コマンド

php bin/console doctrine:migrations:execute '*****'  --dry-run

この時、更に -n または --no-interaction をつけると毎回 prompt されずに済む。

***** は、マイグレーションのバージョンIDを指定。

マイグレーションIDはスクリプトのクラス名から取ってくるか、

php bin/console doctrine:migrations:status --show-versions

の一覧から取得可能。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0