Property | Type | Description | |
---|---|---|---|
$_direction | string | ||
$_migrationsPath | string | ||
$_schemaTableName | string | ||
$_targetVersion | integer |
Method | Description | |
---|---|---|
__construct ( Horde_Db_Adapter $connection, Horde_Log_Logger $logger = null, array $options = [] ) | Constructor. | |
down ( string $targetVersion = null ) | ||
getCurrentVersion ( ) : integer | ||
getTargetVersion ( ) : integer | ||
migrate ( string $targetVersion = null ) | ||
setInflector ( Horde_Support_Inflector $inflector ) | ||
setLogger ( Horde_Log_Logger $logger ) | ||
setMigrationsPath ( string $migrationsPath ) | ||
up ( string $targetVersion = null ) |
Method | Description | |
---|---|---|
_assertUniqueMigrationVersion ( array $migrations, integer $version ) | ||
_doMigrate ( ) | Performs the migration. | |
_getMigrationClass ( string $migrationName, integer $version ) : Horde_Db_Migration_Base | Actually returns object, and not class. | |
_getMigrationClasses ( ) : array | ||
_getMigrationFiles ( ) : array | Returns the list of migration files. | |
_getMigrationVersionAndName ( string $migrationFile ) : array | ||
_hasReachedTargetVersion ( $version ) : boolean | ||
_initializeSchemaInformation ( ) | ||
_isDown ( ) : boolean | ||
_isIrrelevantMigration ( integer $version ) : boolean | ||
_isUp ( ) : boolean | ||
_setSchemaVersion ( integer $version ) |
public __construct ( Horde_Db_Adapter $connection, Horde_Log_Logger $logger = null, array $options = [] ) | ||
$connection | Horde_Db_Adapter | A DB connection object. |
$logger | Horde_Log_Logger | A logger object. |
$options | array | Additional options for the migrator: - migrationsPath: directory with the migration files. - schemaTableName: table for storing the schema version. |
protected _assertUniqueMigrationVersion ( array $migrations, integer $version ) | ||
$migrations | array | |
$version | integer |
protected _getMigrationClass ( string $migrationName, integer $version ) : Horde_Db_Migration_Base | ||
$migrationName | string | |
$version | integer | |
return | Horde_Db_Migration_Base |
protected _getMigrationFiles ( ) : array | ||
return | array |
protected _getMigrationVersionAndName ( string $migrationFile ) : array | ||
$migrationFile | string | |
return | array | ($version, $name) |
protected _hasReachedTargetVersion ( $version ) : boolean | ||
return | boolean |
protected _isIrrelevantMigration ( integer $version ) : boolean | ||
$version | integer | |
return | boolean |
protected _setSchemaVersion ( integer $version ) | ||
$version | integer |
public setInflector ( Horde_Support_Inflector $inflector ) | ||
$inflector | Horde_Support_Inflector |
public setMigrationsPath ( string $migrationsPath ) | ||
$migrationsPath | string | Path to migration files. |