class PropelMigrationManager
Service class for preparing and executing migrations
Methods
setConnections(array $connections)
Set the database connection settings |
||
array |
getConnections()
Get the database connection settings |
|
getConnection($datasource)
|
||
getPdoConnection($datasource)
|
||
getPlatform($datasource)
|
||
setMigrationTable(string $migrationTable)
Set the migration table name |
||
string |
getMigrationTable()
get the migration table name |
|
setMigrationDir(string $migrationDir)
Set the path to the migration classes |
||
string |
getMigrationDir()
Get the path to the migration classes |
|
getOldestDatabaseVersion()
|
||
migrationTableExists($datasource)
|
||
createMigrationTable($datasource)
|
||
updateLatestMigrationTimestamp($datasource, $timestamp)
|
||
getMigrationTimestamps()
|
||
getValidMigrationTimestamps()
|
||
hasPendingMigrations()
|
||
getAlreadyExecutedMigrationTimestamps()
|
||
getFirstUpMigrationTimestamp()
|
||
getFirstDownMigrationTimestamp()
|
||
static |
getMigrationClassName($timestamp)
|
|
getMigrationObject($timestamp)
|
||
getMigrationClassBody($migrationsUp, $migrationsDown, $timestamp)
|
||
static |
getMigrationFileName($timestamp)
|
|
static |
getUser()
|
Details
at line 34
public
setConnections(array $connections)
Set the database connection settings
at line 44
public array
getConnections()
Get the database connection settings
at line 49
public
getConnection($datasource)
at line 58
public
getPdoConnection($datasource)
at line 70
public
getPlatform($datasource)
at line 88
public
setMigrationTable(string $migrationTable)
Set the migration table name
at line 98
public string
getMigrationTable()
get the migration table name
at line 108
public
setMigrationDir(string $migrationDir)
Set the path to the migration classes
at line 118
public string
getMigrationDir()
Get the path to the migration classes
at line 123
public
getOldestDatabaseVersion()
at line 153
public
migrationTableExists($datasource)
at line 167
public
createMigrationTable($datasource)
at line 188
public
updateLatestMigrationTimestamp($datasource, $timestamp)
at line 206
public
getMigrationTimestamps()
at line 223
public
getValidMigrationTimestamps()
at line 238
public
hasPendingMigrations()
at line 243
public
getAlreadyExecutedMigrationTimestamps()
at line 258
public
getFirstUpMigrationTimestamp()
at line 265
public
getFirstDownMigrationTimestamp()
at line 270
static public
getMigrationClassName($timestamp)
at line 275
public
getMigrationObject($timestamp)
at line 286
public
getMigrationClassBody($migrationsUp, $migrationsDown, $timestamp)
at line 352
static public
getMigrationFileName($timestamp)
at line 357
static public
getUser()