You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

m190522_091006_option_comportement_annulation_commande.php 481B

12345678910111213141516
  1. <?php
  2. use yii\db\Migration;
  3. use yii\db\mysql\Schema;
  4. use common\logic\Producer\Producer\Model\Producer;
  5. class m190522_091006_option_comportement_annulation_commande extends Migration {
  6. public function up() {
  7. $this->addColumn('producer', 'option_behavior_cancel_order', Schema::TYPE_STRING.' DEFAULT \''.Producer::BEHAVIOR_DELETE_ORDER_STATUS.'\'') ;
  8. }
  9. public function down() {
  10. $this->dropColumn('producer', 'option_behavior_cancel_order') ;
  11. }
  12. }