php bin/console doctrine:migrations:generate

Generate a blank migration class.

Usage

doctrine:migrations:generate [--editor-cmd [EDITOR-CMD]] [--configuration [CONFIGURATION]] [--db-configuration [DB-CONFIGURATION]] [--db DB] [--em EM] [--shard SHARD]

Options

      --editor-cmd         Open file with this command upon creation. 
      --configuration      The path to a migrations configuration file. 
      --db-configuration   The path to a database connection configuration file. 
      --db                 The database connection to use for this command. 
      --em                 The entity manager to use for this command. 
      --shard              The shard connection to use for this command. 

Help

The doctrine:migrations:generate command generates a blank migration class:

    bin/console doctrine:migrations:generate

You can optionally specify a --editor-cmd option to open the generated file in your favorite editor:

    bin/console doctrine:migrations:generate --editor-cmd=mate