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

17 行
475B

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