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.

m200601_073309_add_producer_options.php 811B

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