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() | ||
| 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 57
public
getPdoConnection($datasource)
at line 76
public
getPlatform($datasource)
at line 93
public
setMigrationTable(string $migrationTable)
Set the migration table name
at line 103
public string
getMigrationTable()
get the migration table name
at line 113
public
setMigrationDir(string $migrationDir)
Set the path to the migration classes
at line 123
public string
getMigrationDir()
Get the path to the migration classes