Skip to content

Commit

Permalink
[ci skip] phpDoc updated (yiisoft#11434)
Browse files Browse the repository at this point in the history
  • Loading branch information
githubjeka authored and samdark committed Apr 27, 2016
1 parent 6b50f2c commit 7c663de
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions framework/console/controllers/MigrateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,14 @@ class MigrateController extends BaseMigrateController

/**
* @var array column definition strings used for creating migration code.
* The format of each definition is `COLUMN_NAME:COLUMN_TYPE:COLUMN_DECORATOR`.
* For example, `--fields=name:string(12):notNull` produces a string column of size 12 which is not null.
*
* 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:primaryKey,name:string(12):notNull:unique"`
* @since 2.0.7
*/
public $fields = [];
Expand Down

0 comments on commit 7c663de

Please sign in to comment.