m160714_132243_change_build_format.php 293 Bytes
<?php

use yii\db\Migration;

class m160714_132243_change_build_format extends Migration
{
    public function up()
    {
        $this->alterColumn('car', 'build', $this->string());
    }

    public function down()
    {
        $this->alterColumn('car', 'build', $this->integer());
    }
}