class RollupCommand extends AbstractCommand (View source)

The RollupCommand class is responsible for deleting all previously executed migrations from the versions table and marking the freshly dumped schema migration (that was created with DumpSchemaCommand) as migrated.

Properties

protected Configuration $configuration from AbstractCommand
protected Connection $connection from AbstractCommand
protected DependencyFactory $dependencyFactory from AbstractCommand
protected MigrationRepository $migrationRepository from AbstractCommand
protected Configuration|null $migrationConfiguration from AbstractCommand

Methods

setMigrationConfiguration(Configuration $configuration)

No description

setConnection(Connection $connection)

No description

setDependencyFactory(DependencyFactory $dependencyFactory)

No description

setMigrationRepository(MigrationRepository $migrationRepository)

No description

initialize(InputInterface $input, OutputInterface $output)

No description

configure()

No description

outputHeader(OutputInterface $output)

No description

getMigrationConfiguration(InputInterface $input, OutputInterface $output)

No description

askConfirmation(string $question, InputInterface $input, OutputInterface $output)

No description

canExecute(string $question, InputInterface $input, OutputInterface $output)

No description

procOpen(string $editorCommand, string $path)

No description

execute(InputInterface $input, OutputInterface $output)

No description

Details

setMigrationConfiguration(Configuration $configuration)

Parameters

Configuration $configuration

setConnection(Connection $connection)

Parameters

Connection $connection

setDependencyFactory(DependencyFactory $dependencyFactory)

Parameters

DependencyFactory $dependencyFactory

setMigrationRepository(MigrationRepository $migrationRepository)

Parameters

MigrationRepository $migrationRepository

initialize(InputInterface $input, OutputInterface $output)

Parameters

InputInterface $input
OutputInterface $output

protected configure()

protected outputHeader(OutputInterface $output)

Parameters

OutputInterface $output

protected getMigrationConfiguration(InputInterface $input, OutputInterface $output)

Parameters

InputInterface $input
OutputInterface $output

protected askConfirmation(string $question, InputInterface $input, OutputInterface $output)

Parameters

string $question
InputInterface $input
OutputInterface $output

protected canExecute(string $question, InputInterface $input, OutputInterface $output)

Parameters

string $question
InputInterface $input
OutputInterface $output

protected procOpen(string $editorCommand, string $path)

Parameters

string $editorCommand
string $path

execute(InputInterface $input, OutputInterface $output)

Parameters

InputInterface $input
OutputInterface $output