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 35
public
setConnections(array $connections)
Set the database connection settings
at line 45
public array
getConnections()
Get the database connection settings
at line 50
public
getConnection($datasource)
at line 59
public
getPdoConnection($datasource)
at line 71
public
getPlatform($datasource)
at line 89
public
setMigrationTable(string $migrationTable)
Set the migration table name
at line 99
public string
getMigrationTable()
get the migration table name
at line 109
public
setMigrationDir(string $migrationDir)
Set the path to the migration classes
at line 119
public string
getMigrationDir()
Get the path to the migration classes
at line 124
public
getOldestDatabaseVersion()
at line 154
public
migrationTableExists($datasource)
at line 168
public
createMigrationTable($datasource)
at line 189
public
updateLatestMigrationTimestamp($datasource, $timestamp)
at line 207
public
getMigrationTimestamps()
at line 224
public
getValidMigrationTimestamps()
at line 239
public
hasPendingMigrations()
at line 244
public
getAlreadyExecutedMigrationTimestamps()
at line 259
public
getFirstUpMigrationTimestamp()
at line 266
public
getFirstDownMigrationTimestamp()
at line 271
static public
getMigrationClassName($timestamp)
at line 276
public
getMigrationObject($timestamp)
at line 287
public
getMigrationClassBody($migrationsUp, $migrationsDown, $timestamp)
at line 353
static public
getMigrationFileName($timestamp)
at line 358
static public
getUser()