- <?php
-
- use yii\db\Migration;
- use yii\db\Schema;
-
- class m180331_185334_add_field_favorite_producer extends Migration {
-
- public function up() {
- $this->addColumn('user_etablissement', 'favoris', Schema::TYPE_BOOLEAN.' DEFAULT 1') ;
- }
-
- public function down() {
- $this->dropColumn('user_etablissement', 'favoris') ;
- }
- }
|