m160714_132243_change_build_format.php 293 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 <?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()); } }