db\SchemaBuilderTrait

Trait yii\db\SchemaBuilderTrait

Implemented by yii\db\Migration
Available since version 2.0.6
Source Code https://github.com/yiisoft/yii2/blob/master/framework/db/SchemaBuilderTrait.php

SchemaBuilderTrait contains shortcut methods to create instances of yii\db\ColumnSchemaBuilder.

These can be used in database migrations to define database schema types using a PHP interface. This is useful to define a schem