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.

23 lines
823B

  1. <?php
  2. use yii\db\Migration;
  3. use yii\db\Schema;
  4. use common\logic\Producer\Producer\Model\Producer;
  5. class m200601_073309_add_producer_options extends Migration
  6. {
  7. public function safeUp()
  8. {
  9. $this->addColumn('producer', 'behavior_home_point_sale_day_list', Schema::TYPE_STRING.' DEFAULT \''.Producer::BEHAVIOR_HOME_POINT_SALE_DAY_LIST_WEEK.'\'');
  10. $this->addColumn('producer', 'behavior_order_select_distribution', Schema::TYPE_STRING.' DEFAULT \''.Producer::BEHAVIOR_ORDER_SELECT_DISTRIBUTION_CALENDAR.'\'');
  11. }
  12. public function safeDown()
  13. {
  14. $this->dropColumn('producer', 'behavior_home_point_sale_day_list');
  15. $this->dropColumn('producer', 'behavior_order_select_distribution');
  16. return false;
  17. }
  18. }