<?php use yii\db\Migration; use yii\db\Schema ; class m161117_094154_add_champs_code_boulangerie extends Migration { public function up() { $this->addColumn('etablissement', 'code', Schema::TYPE_STRING) ; } public function down() { $this->dropColumn('etablissement', 'code') ; } /* // Use safeUp/safeDown to run migration code within a transaction public function safeUp() { } public function safeDown() { } */ }