PHP Class Doctrine\DBAL\Migrations\Tools\Console\Command\MigrateCommand

Since: 2.0
Author: Jonathan Wage ([email protected])
Inheritance: extends AbstractCommand
Show file Open project: doctrine/migrations Class Usage Examples

Public Methods

Method Description
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )

Protected Methods

Method Description
configure ( )
createMigration ( Configuration $configuration ) : Migration Create a new migration instance to execute the migrations.

Private Methods

Method Description
canExecute ( string $question, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : boolean
getVersionNameFromAlias ( string $versionAlias, Symfony\Component\Console\Output\OutputInterface $output, Configuration $configuration ) : boolean | string

Method Details

configure() protected method

protected configure ( )

createMigration() protected method

Create a new migration instance to execute the migrations.
protected createMigration ( Configuration $configuration ) : Migration
$configuration Doctrine\DBAL\Migrations\Configuration\Configuration The configuration with which the migrations will be executed
return Doctrine\DBAL\Migrations\Migration a new migration instance

execute() public method

public execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface