M230823095546AlterAddonsStoreCommissionHigoReward.php 995 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. namespace addons\Store\console\migrations;
  3. use yii\db\Migration;
  4. /**
  5. * Class M230823095546AlterAddonsStoreCommissionHigoReward
  6. */
  7. class M230823095546AlterAddonsStoreCommissionHigoReward extends Migration
  8. {
  9. /**
  10. * {@inheritdoc}
  11. */
  12. public function safeUp()
  13. {
  14. $sql = "ALTER TABLE `qimall_addons_store_commission`
  15. ADD COLUMN `higo_reward` decimal(12, 2) NOT NULL DEFAULT 0.00 COMMENT 'HiGo商家让利,商户嗨贝不足扣除等额到账金额';";
  16. $this->execute($sql);
  17. }
  18. /**
  19. * {@inheritdoc}
  20. */
  21. public function safeDown()
  22. {
  23. echo "M230823095546AlterAddonsStoreCommissionHigoReward cannot be reverted.\n";
  24. return false;
  25. }
  26. /*
  27. // Use up()/down() to run migration code without a transaction.
  28. public function up()
  29. {
  30. }
  31. public function down()
  32. {
  33. echo "M230823095546AlterAddonsStoreCommissionHigoReward cannot be reverted.\n";
  34. return false;
  35. }
  36. */
  37. }