console\controllers\MigrateController removeMigrationHistory()

removeMigrationHistory() protected method Removes existing migration from the history. protected void removeMigrationHistory ( $version )$version string Migration version name.

console\controllers\MigrateController parseFields()

parseFields() protected method (available since version 2.0.7) Parse the command line migration fields protected array parseFields ( )return array Parse result with following fields: fields: array, parsed fields foreignKeys: array, detected foreign keys

console\controllers\MigrateController options()

options() public method Returns the names of valid options for the action (id) An option requires the existence of a public member variable whose name is the option name. Child classes may override this method to specify possible options. Note that the values setting via options are not available until beforeAction() is being called. public array options ( $actionID )$actionID string The action id of the current request return array The names of the options valid for the action

console\controllers\MigrateController optionAliases()

optionAliases() public method (available since version 2.0.8) Returns option alias names. Child classes may override this method to specify alias options. public array optionAliases ( )return array The options alias names valid for the action where the keys is alias name for option and value is option name.

console\controllers\MigrateController getMigrationHistory()

getMigrationHistory() protected method Returns the migration history. protected array getMigrationHistory ( $limit )$limit integer The maximum number of records in the history to be returned. null for "no limit". return array The migration history

console\controllers\MigrateController generateTableName()

generateTableName() protected method (available since version 2.0.8) If useTablePrefix equals true, then the table name will contain the prefix format. protected string generateTableName ( $tableName )$tableName string The table name to generate.

console\controllers\MigrateController generateMigrationSourceCode()

generateMigrationSourceCode() protected method (available since version 2.0.8) Generates new migration source PHP code. Child class may override this method, adding extra logic or variation to the process. protected string generateMigrationSourceCode ( $params )$params array Generation parameters, usually following parameters are present: name: string migration base name className: string migration class name return string Generated PHP code.

console\controllers\MigrateController createMigrationHistoryTable()

createMigrationHistoryTable() protected method Creates the migration history table. protected void createMigrationHistoryTable ( )

console\controllers\MigrateController createMigration()

createMigration() protected method Creates a new migration instance. protected yii\db\Migration createMigration ( $class )$class string The migration class name return yii\db\Migration The migration instance

console\controllers\MigrateController beforeAction()

beforeAction() public method This method is invoked right before an action is to be executed (after all possible filters.) It checks the existence of the $migrationPath. public boolean beforeAction ( $action )$action yii\base\Action The action to be executed. return boolean Whether the action should continue to be executed.