class Version implements VersionInterface (View source)

Methods

__construct(Configuration $configuration, string $version, string $class, VersionExecutorInterface $versionExecutor)

No description

__toString()

No description

getVersion()

No description

getDateTime()

No description

getConfiguration()

No description

getMigration()

No description

isMigrated()

No description

getExecutedAt()

No description

setState(int $state)

No description

getExecutionState()

No description

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

No description

writeSqlFile(string $path, string $direction = VersionDirection::UP)

No description

execute(string $direction, MigratorConfig|null $migratorConfig = null)

No description

markMigrated()

No description

markNotMigrated()

No description

markVersion(string $direction)

No description

Details

__construct(Configuration $configuration, string $version, string $class, VersionExecutorInterface $versionExecutor)

Parameters

Configuration $configuration
string $version
string $class
VersionExecutorInterface $versionExecutor

__toString()

getVersion()

getDateTime()

getConfiguration()

getMigration()

isMigrated()

getExecutedAt()

setState(int $state)

Parameters

int $state

getExecutionState()

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

Parameters

string $sql
array $params
array $types

writeSqlFile(string $path, string $direction = VersionDirection::UP)

Parameters

string $path
string $direction

execute(string $direction, MigratorConfig|null $migratorConfig = null)

Parameters

string $direction
MigratorConfig|null $migratorConfig

markMigrated()

markNotMigrated()

markVersion(string $direction)

Parameters

string $direction