Fix #19759: Update docs for Command::createTable(), Migration::createTable() and QueryBuilder::createTable()

This commit is contained in:
Sohel Ahmed Mesaniya
2023-06-15 21:02:22 -07:00
committed by GitHub
parent 94a1cc5019
commit 6c511d99fb
3 changed files with 27 additions and 3 deletions

View File

@@ -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
* ]);
* ```
*