|
1234567891011121314151617181920212223242526272829303132 |
- <?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) ;
- }
-
- 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()
- {
- }
- */
- }
|