mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 23:09:10 +08:00
Merge branch 'querybuilder-dynamic-column-types' of github.com:cebe/yii2 into querybuilder-dynamic-column-types
* 'querybuilder-dynamic-column-types' of github.com:cebe/yii2: Added phpdoc about precision constraints for abstract db types
This commit is contained in:
@@ -464,7 +464,11 @@ class QueryBuilder extends \yii\base\Object
|
||||
* the first part will be converted, and the rest of the parts will be appended to the converted result.
|
||||
* For example, 'string NOT NULL' is converted to 'varchar(255) NOT NULL'.
|
||||
*
|
||||
// TODO documentation
|
||||
* For some of the abstract types you can also specify a length or precision constraint
|
||||
* by prepending it in round brackets directly to the type.
|
||||
* For example `string(32)` will be converted into "varchar(32)" on a MySQL database.
|
||||
* If the underlying DBMS does not support these kind of constraints for a type it will
|
||||
* be ignored.
|
||||
*
|
||||
* If a type cannot be found in [[typeMap]], it will be returned without any change.
|
||||
* @param string $type abstract column type
|
||||
|
||||
Reference in New Issue
Block a user