|
123456789101112131415161718192021222324252627282930313233 |
- <?php
-
- use yii\db\Schema;
- use yii\db\Migration;
-
- class m161012_075736_ajout_ids_boulangerie extends Migration
- {
- public function up()
- {
- $this->addColumn('produit', 'id_etablissement', Schema::TYPE_INTEGER) ;
- $this->addColumn('production', 'id_etablissement', Schema::TYPE_INTEGER) ;
- $this->addColumn('point_vente', 'id_etablissement', Schema::TYPE_INTEGER) ;
- $this->addColumn('user', 'id_etablissement', Schema::TYPE_INTEGER) ;
- }
-
- public function down()
- {
- $this->dropColumn('produit', 'id_etablissement') ;
- $this->dropColumn('production', 'id_etablissement') ;
- $this->dropColumn('point_vente', 'id_etablissement') ;
- }
-
- /*
- // Use safeUp/safeDown to run migration code within a transaction
- public function safeUp()
- {
- }
-
- public function safeDown()
- {
- }
- */
- }
|