PHP Класс dektrium\rbac\commands\MigrateController

Автор: Dmitry Erofeev ([email protected])
Наследование: extends yii\console\controllers\BaseMigrateController
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$db the DB connection object or the application component ID of the DB connection to use when applying migrations.This can also be a configuration array for creating the object.
$migrationPath the directory storing the migration classes. This can be either a path alias or a directory.
$migrationTable the name of the table for keeping applied migration information.
$templateFile

Открытые методы

Метод Описание
getDb ( ) : array | string | Connection
init ( )

Защищенные методы

Метод Описание
addMigrationHistory ( $version )
createMigrationHistoryTable ( ) Creates the migration history table.
getMigrationHistory ( $limit )
removeMigrationHistory ( $version )

Описание методов

addMigrationHistory() защищенный Метод

protected addMigrationHistory ( $version )

createMigrationHistoryTable() защищенный Метод

Creates the migration history table.

getDb() публичный Метод

public getDb ( ) : array | string | Connection
Результат array | string | yii\db\Connection

getMigrationHistory() защищенный Метод

protected getMigrationHistory ( $limit )

init() публичный Метод

public init ( )

removeMigrationHistory() защищенный Метод

protected removeMigrationHistory ( $version )

Описание свойств

$db публичное свойство

the DB connection object or the application component ID of the DB connection to use when applying migrations.This can also be a configuration array for creating the object.
public $db

$migrationPath публичное свойство

the directory storing the migration classes. This can be either a path alias or a directory.
public $migrationPath

$migrationTable публичное свойство

the name of the table for keeping applied migration information.
public $migrationTable

$templateFile публичное свойство

public $templateFile