db\SchemaBuilderTrait decimal()

decimal() public method (available since version 2.0.6) Creates a decimal column. public yii\db\ColumnSchemaBuilder decimal ( $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 p

db\SchemaBuilderTrait dateTime()

dateTime() public method (available since version 2.0.6) Creates a datetime column. public yii\db\ColumnSchemaBuilder dateTime ( $precision = null )$precision integer Column value precision. First parameter passed to the column type, e.g. DATETIME(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 date()

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

db\SchemaBuilderTrait char()

char() public method (available since version 2.0.8) Creates a char column. public yii\db\ColumnSchemaBuilder char ( $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 boolean()

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

db\SchemaBuilderTrait binary()

binary() public method (available since version 2.0.6) Creates a binary column. public yii\db\ColumnSchemaBuilder binary ( $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 bigPrimaryKey()

bigPrimaryKey() public method (available since version 2.0.6) Creates a big primary key column. public yii\db\ColumnSchemaBuilder bigPrimaryKey ( $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 bigInteger()

bigInteger() public method (available since version 2.0.6) Creates a bigint column. public yii\db\ColumnSchemaBuilder bigInteger ( $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\Schema supportsSavepoint()

supportsSavepoint() public method public boolean supportsSavepoint ( )return boolean Whether this DBMS supports savepoint.

db\Schema setTransactionIsolationLevel()

setTransactionIsolationLevel() public method Sets the isolation level of the current transaction. See also http://en.wikipedia.org/wiki/Isolation_(database_systems)#Isolation_levels. public void setTransactionIsolationLevel ( $level )$level string The transaction isolation level to use for this transaction. This can be one of yii\db\Transaction::READ_UNCOMMITTED, yii\db\Transaction::READ_COMMITTED, yii\db\Transaction::REPEATABLE_READ and yii\db\Transaction::SERIALIZABLE but also a string