DbMigrationManager
Table of Contents
Constants
-
DEFAULT_TABLE
= 'ndx_migrations'
Methods
-
__construct()
: mixed
-
checkMigration()
: bool
-
completeMigration()
: void
-
createClassName()
: string
-
createFileName()
: string
-
createNames()
: object
-
createTrackingTable()
: void
-
destroyTrackingTable()
: void
-
init()
: void
-
prepareStatements()
: void
-
processMigrations()
: array<string|int, mixed>
-
template()
: string
DEFAULT_TABLE
public
mixed
DEFAULT_TABLE
= 'ndx_migrations'
__construct()
public
__construct(IDbConnection $conn[, string $tableName = self::DEFAULT_TABLE ]) : mixed
Parameters
-
$conn
: IDbConnection
-
-
$tableName
: string
= self::DEFAULT_TABLE
-
checkMigration()
public
checkMigration(string $name) : bool
Parameters
-
$name
: string
-
completeMigration()
public
completeMigration(string $name[, DateTimeInterface|null $dateTime = null ]) : void
Parameters
-
$name
: string
-
-
$dateTime
: DateTimeInterface|null
= null
-
createClassName()
public
createClassName(string $name[, DateTimeInterface|null $dateTime = null ]) : string
Parameters
-
$name
: string
-
-
$dateTime
: DateTimeInterface|null
= null
-
createFileName()
public
createFileName(string $name[, DateTimeInterface|null $dateTime = null ]) : string
Parameters
-
$name
: string
-
-
$dateTime
: DateTimeInterface|null
= null
-
createNames()
public
createNames(string $baseName[, DateTimeInterface|null $dateTime = null ]) : object
Parameters
-
$baseName
: string
-
-
$dateTime
: DateTimeInterface|null
= null
-
createTrackingTable()
public
createTrackingTable() : void
destroyTrackingTable()
public
destroyTrackingTable() : void
init()
public
init() : void
prepareStatements()
public
prepareStatements() : void
processMigrations()
public
processMigrations(IDbMigrationRepo $migrations) : array<string|int, mixed>
Parameters
-
$migrations
: IDbMigrationRepo
-
Return values
array<string|int, mixed>
template()
public
template(string $name) : string
Parameters
-
$name
: string
-