PHP Class dektrium\rbac\commands\MigrateController

Author: Dmitry Erofeev ([email protected])
Inheritance: extends yii\console\controllers\BaseMigrateController
Show file Open project: dektrium/yii2-rbac

Public Properties

Property Type Description
$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

Public Methods

Method Description
getDb ( ) : array | string | Connection
init ( )

Protected Methods

Method Description
addMigrationHistory ( $version )
createMigrationHistoryTable ( ) Creates the migration history table.
getMigrationHistory ( $limit )
removeMigrationHistory ( $version )

Method Details

addMigrationHistory() protected method

protected addMigrationHistory ( $version )

createMigrationHistoryTable() protected method

Creates the migration history table.

getDb() public method

public getDb ( ) : array | string | Connection
return array | string | yii\db\Connection

getMigrationHistory() protected method

protected getMigrationHistory ( $limit )

init() public method

public init ( )

removeMigrationHistory() protected method

protected removeMigrationHistory ( $version )

Property Details

$db public property

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 public property

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

$migrationTable public property

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

$templateFile public property

public $templateFile