class Migration (View source)

Methods

__construct(Configuration $configuration, MigrationRepository $migrationRepository, OutputWriter $outputWriter)

No description

setNoMigrationException(bool $noMigrationException = false)

No description

string[][]
getSql(string|null $to = null)

No description

writeSqlFile(string $path, string|null $to = null)

No description

string[][]
migrate(string|null $to = null, bool $dryRun = false, bool $timeAllQueries = false, callable|null $confirm = null)

No description

Details

__construct(Configuration $configuration, MigrationRepository $migrationRepository, OutputWriter $outputWriter)

Parameters

Configuration $configuration
MigrationRepository $migrationRepository
OutputWriter $outputWriter

setNoMigrationException(bool $noMigrationException = false)

Parameters

bool $noMigrationException

string[][] getSql(string|null $to = null)

Parameters

string|null $to

Return Value

string[][]

writeSqlFile(string $path, string|null $to = null)

Parameters

string $path
string|null $to

string[][] migrate(string|null $to = null, bool $dryRun = false, bool $timeAllQueries = false, callable|null $confirm = null)

Parameters

string|null $to
bool $dryRun
bool $timeAllQueries
callable|null $confirm

Return Value

string[][]

Exceptions

MigrationException