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