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