Свойство | Type | Description | |
---|---|---|---|
$connectionID | string | ||
$migrationTable | string |
Méthode | Description | |
---|---|---|
checkForBadMigration ( string $module, boolean $class = false ) : boolean | Проверяем на незавершённые миграции: | |
checkForUpdates ( array $modules ) : mixed | Check each modules for new migrations | |
getInstalledModulesList ( ) : array | Return installed modules id | |
getMigrationHistory ( string $module, integer $limit = 20 ) : mixed | Check each modules for new migrations | |
getModulesWithDBInstalled ( ) : mixed | Return db-installed modules list | |
init ( ) : parent:init() | Инициализируем класс: | |
migrateDown ( string $module, string $class ) : boolean | Даунгрейд миграции: | |
updateToLatest ( string $module ) : boolean | Обновление до актуальной миграции: |
Méthode | Description | |
---|---|---|
createMigrationHistoryTable ( ) : nothing | Create migration history table | |
getDbConnection ( ) : db | Connect to DB | |
getNewMigrations ( string $module ) : mixed | Check for new migrations for module | |
instantiateMigration ( string $module, string $class ) : mixed | Check each modules for new migrations | |
migrateUp ( string $module, string $class ) : boolean | Обновляем миграцию: |
public checkForUpdates ( array $modules ) : mixed | ||
$modules | array | - list of modules |
Résultat | mixed | new migrations |
protected createMigrationHistoryTable ( ) : nothing | ||
Résultat | nothing |
protected getDbConnection ( ) : db | ||
Résultat | db | connection or make exception |
public getInstalledModulesList ( ) : array | ||
Résultat | array |
public getModulesWithDBInstalled ( ) : mixed | ||
Résultat | mixed | db-installed |
protected getNewMigrations ( string $module ) : mixed | ||
$module | string | - required module |
Résultat | mixed | new migrations |
public updateToLatest ( string $module ) : boolean | ||
$module | string | - required module |
Résultat | boolean | if migration updated |