| 12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace addons\Store\console\migrations;
- use yii\db\Migration;
- /**
- * Class M240923180121ModifyColumnCachierServiceRatio
- */
- class M240923180121ModifyColumnCachierServiceRatio extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql=<<<SQL
- ALTER TABLE `qimall_addons_store_settings`
- MODIFY COLUMN `cachier_service_ratio` decimal(6, 3) NOT NULL DEFAULT 0.000 COMMENT '收银台服务费比例' AFTER `store_commission_authority`;
- SQL;
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240923180121ModifyColumnCachierServiceRatio cannot be reverted.\n";
- return false;
- }
- }
|