db\SchemaBuilderTrait time()

time() public method (available since version 2.0.6) Creates a time column. public yii\db\ColumnSchemaBuilder time ( $precision = null )$precision integer Column value precision. First parameter passed to the column type, e.g. TIME(precision). This parameter will be ignored if not supported by the DBMS. return yii\db\ColumnSchemaBuilder The column instance which can be further customized.

db\SchemaBuilderTrait text()

text() public method (available since version 2.0.6) Creates a text column. public yii\db\ColumnSchemaBuilder text ( )return yii\db\ColumnSchemaBuilder The column instance which can be further customized.

db\SchemaBuilderTrait string()

string() public method (available since version 2.0.6) Creates a string column. public yii\db\ColumnSchemaBuilder string ( $length = null )$length integer Column size definition i.e. the maximum string length. This parameter will be ignored if not supported by the DBMS. return yii\db\ColumnSchemaBuilder The column instance which can be further customized.

db\SchemaBuilderTrait smallInteger()

smallInteger() public method (available since version 2.0.6) Creates a smallint column. public yii\db\ColumnSchemaBuilder smallInteger ( $length = null )$length integer Column size or precision definition. This parameter will be ignored if not supported by the DBMS. return yii\db\ColumnSchemaBuilder The column instance which can be further customized.

db\SchemaBuilderTrait primaryKey()

primaryKey() public method (available since version 2.0.6) Creates a primary key column. public yii\db\ColumnSchemaBuilder primaryKey ( $length = null )$length integer Column size or precision definition. This parameter will be ignored if not supported by the DBMS. return yii\db\ColumnSchemaBuilder The column instance which can be further customized.

db\SchemaBuilderTrait money()

money() public method (available since version 2.0.6) Creates a money column. public yii\db\ColumnSchemaBuilder money ( $precision = null, $scale = null )$precision integer Column value precision, which is usually the total number of digits. First parameter passed to the column type, e.g. DECIMAL(precision, scale). This parameter will be ignored if not supported by the DBMS. $scale integer Column value scale, which is usually the number of digits after the decimal point. Second paramet

db\SchemaBuilderTrait integer()

integer() public method (available since version 2.0.6) Creates an integer column. public yii\db\ColumnSchemaBuilder integer ( $length = null )$length integer Column size or precision definition. This parameter will be ignored if not supported by the DBMS. return yii\db\ColumnSchemaBuilder The column instance which can be further customized.

db\SchemaBuilderTrait getDb()

getDb() protected abstract method protected abstract yii\db\Connection getDb ( )return yii\db\Connection The database connection to be used for schema building.

db\SchemaBuilderTrait float()

float() public method (available since version 2.0.6) Creates a float column. public yii\db\ColumnSchemaBuilder float ( $precision = null )$precision integer Column value precision. First parameter passed to the column type, e.g. FLOAT(precision). This parameter will be ignored if not supported by the DBMS. return yii\db\ColumnSchemaBuilder The column instance which can be further customized.

db\SchemaBuilderTrait double()

double() public method (available since version 2.0.6) Creates a double column. public yii\db\ColumnSchemaBuilder double ( $precision = null )$precision integer Column value precision. First parameter passed to the column type, e.g. DOUBLE(precision). This parameter will be ignored if not supported by the DBMS. return yii\db\ColumnSchemaBuilder The column instance which can be further customized.