|
123456789101112131415161718192021222324252627282930313233343536 |
- <?php
-
- use yii\db\Schema;
- use yii\db\Migration;
-
- class m150703_112115_gestion_vrac extends Migration
- {
- public function up()
- {
- $this->addColumn('produit', 'vrac', Schema::TYPE_BOOLEAN) ;
- $this->addColumn('produit', 'epuise', Schema::TYPE_BOOLEAN) ;
-
- $this->addColumn('point_vente', 'vrac', Schema::TYPE_BOOLEAN) ;
- $this->addColumn('point_vente', 'pain', Schema::TYPE_BOOLEAN) ;
- }
-
- public function down()
- {
- $this->dropColumn('produit', 'vrac') ;
- $this->dropColumn('produit', 'epuise') ;
-
- $this->dropColumn('point_vente', 'vrac') ;
- $this->dropColumn('point_vente', 'pain') ;
- }
-
- /*
- // Use safeUp/safeDown to run migration code within a transaction
- public function safeUp()
- {
- }
-
- public function safeDown()
- {
- }
- */
- }
|