|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?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') ;
- }
-
-
-
- }
|