class Version (View source)

Constants

STATE_NONE

STATE_PRE

STATE_EXEC

STATE_POST

DIRECTION_UP

DIRECTION_DOWN

Methods

__construct(Configuration $configuration, string $version, string $class, SchemaDiffProviderInterface|null $schemaProvider = null)

No description

getVersion()

No description

getConfiguration()

No description

isMigrated()

No description

markMigrated()

No description

markNotMigrated()

No description

addSql(string[]|string $sql, array $params = [], array $types = [])

No description

writeSqlFile(string $path, string $direction = self::DIRECTION_UP)

No description

getMigration()

No description

string[]
execute(string $direction, bool $dryRun = false, bool $timeAllQueries = false)

No description

getExecutionState()

No description

getTime()

No description

__toString()

No description

Details

__construct(Configuration $configuration, string $version, string $class, SchemaDiffProviderInterface|null $schemaProvider = null)

Parameters

Configuration $configuration
string $version
string $class
SchemaDiffProviderInterface|null $schemaProvider

getVersion()

getConfiguration()

isMigrated()

markMigrated()

markNotMigrated()

addSql(string[]|string $sql, array $params = [], array $types = [])

Parameters

string[]|string $sql
array $params
array $types

writeSqlFile(string $path, string $direction = self::DIRECTION_UP)

Parameters

string $path
string $direction

getMigration()

string[] execute(string $direction, bool $dryRun = false, bool $timeAllQueries = false)

Parameters

string $direction
bool $dryRun
bool $timeAllQueries

Return Value

string[]

getExecutionState()

getTime()

__toString()