| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- namespace addons\Store\console\migrations;
- use yii\db\Migration;
- /**
- * Class M240411071352StoreWithdrawFeeAddField
- */
- class M240411071352StoreWithdrawFeeAddField extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $this->execute("ALTER TABLE `qimall_addons_store_settings`
- ADD COLUMN `is_enable_withdraw_setting` TINYINT(1) NOT NULL DEFAULT '0' COMMENT '商家提现设置',
- ADD COLUMN `balance_cash_service_fee_limit` TINYINT(1) NOT NULL DEFAULT '0' COMMENT '阶梯手续费' AFTER `is_enable_withdraw_setting`,
- ADD COLUMN `balance_cash_service_fee` DECIMAL(5,2) NOT NULL DEFAULT 0 COMMENT '提现手续费' AFTER `balance_cash_service_fee_limit`,
- ADD COLUMN `balance_cash_service_fee_diff` DECIMAL(5,2) NOT NULL DEFAULT 0 COMMENT '阶梯提现手续费' AFTER `balance_cash_service_fee`,
- ADD COLUMN `balance_cash_service_fee_month` DECIMAL(10,2) NOT NULL DEFAULT 0 COMMENT '每月免额额度' AFTER `balance_cash_service_fee_diff`;");
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240411071352StoreWithdrawFeeAddField cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M240411071352StoreWithdrawFeeAddField cannot be reverted.\n";
- return false;
- }
- */
- }
|