php bin/console doctrine:migrations:rollup

Rollup migrations by deleting all tracked versions and insert the one version that exists.

Usage

doctrine:migrations:rollup [--configuration CONFIGURATION] [--em EM] [--conn CONN]

Options

      --configuration   The path to a migrations configuration file. <comment>[default: any of migrations.{php,xml,json,yml,yaml}]</comment> 
      --em              The name of the entity manager to use. 
      --conn            The name of the connection to use. 

Help

The doctrine:migrations:rollup command rolls up migrations by deleting all tracked versions and
inserts the one version that exists that was created with the migrations:dump-schema command.

    bin/console doctrine:migrations:rollup

To dump your schema to a migration version you can use the migrations:dump-schema command.