console\controllers\MigrateController addMigrationHistory()

addMigrationHistory() protected method Adds new migration entry to the history. protected void addMigrationHistory ( $version )$version string Migration version name.

console\controllers\MigrateController addDefaultPrimaryKey()

addDefaultPrimaryKey() protected method (available since version 2.0.7) Adds default primary key to fields list if there's no primary key specified protected void addDefaultPrimaryKey ( &$fields )$fields array Parsed fields

console\controllers\MigrateController $useTablePrefix

$useTablePrefix public property (available since version 2.0.8) Indicates whether the table names generated should consider the tablePrefix setting of the DB connection. For example, if the table name is post the generator wil return {{%post}}. public boolean $useTablePrefix = false

console\controllers\MigrateController $templateFile

$templateFile public property The template file for generating new migrations. This can be either a path alias (e.g. "@app/migrations/template.php") or a file path. The template file for generating new migrations. This can be either a path alias (e.g. "@app/migrations/template.php") or a file path. public string $templateFile = '@yii/views/migration.php'

console\controllers\MigrateController $migrationTable

$migrationTable public property The name of the table for keeping applied migration information. public string $migrationTable = '{{%migration}}'

console\controllers\MigrateController $generatorTemplateFiles

$generatorTemplateFiles public property (available since version 2.0.7) A set of template paths for generating migration code automatically. The key is the template type, the value is a path or the alias. Supported types are: create_table: table creating template drop_table: table dropping template add_column: adding new column template drop_column: dropping column template create_junction: create junction template public array $generatorTemplateFiles = ['create_table' => '@yii/vie

console\controllers\MigrateController $fields

$fields public property (available since version 2.0.7) Column definition strings used for creating migration code. The format of each definition is COLUMN_NAME:COLUMN_TYPE:COLUMN_DECORATOR. Delimiter is ,. For example, --fields="name:string(12):notNull:unique" produces a string column of size 12 which is not null and unique values. Note: primary key is added automatically and is named id by default. If you want to use another name you may specify it explicitly like --fields="id_key:primary

console\controllers\MigrateController $db

$db public property The DB connection object or the application component ID of the DB connection to use when applying migrations. Starting from version 2.0.3, this can also be a configuration array for creating the object. public yii\db\Connection|array|string $db = 'db'

console\controllers\MessageController tokensEqual()

tokensEqual() protected method (available since version 2.0.1) Finds out if two PHP tokens are equal protected boolean tokensEqual ( $a, $b )$a array|string $b array|string

console\controllers\MessageController saveMessagesToPOT()

saveMessagesToPOT() protected method (available since version 2.0.6) Writes messages into POT file protected void saveMessagesToPOT ( $messages, $dirName, $catalog )$messages array $dirName string Name of the directory to write to $catalog string Message catalog