class DiffCommand extends GenerateCommand (View source)

Constants

MIGRATION_TEMPLATE

Properties

protected null|SchemaProviderInterface $schemaProvider

Methods

configure()

No description

outputHeader(Configuration $configuration, OutputInterface $output)

No description

getMigrationConfiguration(InputInterface $input, OutputInterface $output)

No description

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

No description

execute(InputInterface $input, OutputInterface $output)

No description

getTemplate()

No description

generateMigration(Configuration $configuration, InputInterface $input, string $version, string|null $up = null, string|null $down = null)

No description

loadCustomTemplate(Configuration $configuration, OutputInterface $output)

No description

__construct(SchemaProviderInterface|null $schemaProvider = null)

No description

Details

protected configure()

protected outputHeader(Configuration $configuration, OutputInterface $output)

Parameters

Configuration $configuration
OutputInterface $output

setMigrationConfiguration(Configuration $config)

Parameters

Configuration $config

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

execute(InputInterface $input, OutputInterface $output)

Parameters

InputInterface $input
OutputInterface $output

protected getTemplate()

protected generateMigration(Configuration $configuration, InputInterface $input, string $version, string|null $up = null, string|null $down = null)

Parameters

Configuration $configuration
InputInterface $input
string $version
string|null $up
string|null $down

protected loadCustomTemplate(Configuration $configuration, OutputInterface $output)

Parameters

Configuration $configuration
OutputInterface $output

__construct(SchemaProviderInterface|null $schemaProvider = null)

Parameters

SchemaProviderInterface|null $schemaProvider