您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

m190522_091006_option_comportement_annulation_commande.php 469B

12345678910111213141516
  1. <?php
  2. use domain\Producer\Producer\Producer;
  3. use yii\db\Migration;
  4. use yii\db\mysql\Schema;
  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. }