mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-21 22:47:17 +01:00
Fix #19759: Update docs for Command::createTable(), Migration::createTable() and QueryBuilder::createTable()
This commit is contained in:
committed by
GitHub
parent
94a1cc5019
commit
6c511d99fb
@@ -692,7 +692,7 @@ class QueryBuilder extends \yii\base\BaseObject
|
||||
*
|
||||
* The columns in the new table should be specified as name-definition pairs (e.g. 'name' => 'string'),
|
||||
* where name stands for a column name which will be properly quoted by the method, and definition
|
||||
* stands for the column type which can contain an abstract DB type.
|
||||
* stands for the column type which must contain an abstract DB type.
|
||||
* The [[getColumnType()]] method will be invoked to convert any abstract type into a physical one.
|
||||
*
|
||||
* If a column is specified with definition only (e.g. 'PRIMARY KEY (name, type)'), it will be directly
|
||||
@@ -705,6 +705,7 @@ class QueryBuilder extends \yii\base\BaseObject
|
||||
* 'id' => 'pk',
|
||||
* 'name' => 'string',
|
||||
* 'age' => 'integer',
|
||||
* 'column_name double precision null default null', # definition only example
|
||||
* ]);
|
||||
* ```
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user