|
123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
-
- use yii\db\Schema;
- use yii\db\Migration;
-
- class m160223_105614_options_user extends Migration
- {
- public function up()
- {
- $this->addColumn('user', 'no_mail', Schema::TYPE_BOOLEAN) ;
- $this->addColumn('user', 'mail_prod_lundi', Schema::TYPE_BOOLEAN) ;
- $this->addColumn('user', 'mail_prod_mardi', Schema::TYPE_BOOLEAN) ;
- $this->addColumn('user', 'mail_prod_mercredi', Schema::TYPE_BOOLEAN) ;
- $this->addColumn('user', 'mail_prod_jeudi', Schema::TYPE_BOOLEAN) ;
- $this->addColumn('user', 'mail_prod_vendredi', Schema::TYPE_BOOLEAN) ;
- $this->addColumn('user', 'mail_prod_samedi', Schema::TYPE_BOOLEAN) ;
- $this->addColumn('user', 'mail_prod_dimanche', Schema::TYPE_BOOLEAN) ;
- }
-
- public function down()
- {
- $this->dropColumn('user', 'no_mail') ;
- $this->dropColumn('user', 'mail_prod_lundi') ;
- $this->dropColumn('user', 'mail_prod_mardi') ;
- $this->dropColumn('user', 'mail_prod_mercredi') ;
- $this->dropColumn('user', 'mail_prod_jeudi') ;
- $this->dropColumn('user', 'mail_prod_vendredi') ;
- $this->dropColumn('user', 'mail_prod_samedi') ;
- $this->dropColumn('user', 'mail_prod_dimanche') ;
- }
-
- /*
- // Use safeUp/safeDown to run migration code within a transaction
- public function safeUp()
- {
- }
-
- public function safeDown()
- {
- }
- */
- }
|