class Migration (View source)

Methods

__construct(Configuration $configuration)

No description

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

No description

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

No description

setNoMigrationException(bool $noMigrationException = false)

No description

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

No description

Details

__construct(Configuration $configuration)

Parameters

Configuration $configuration

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

setNoMigrationException(bool $noMigrationException = false)

Parameters

bool $noMigrationException

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