| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- namespace addons\Mch\console\migrations;
- use yii\db\Migration;
- /**
- * Class M230810084956AlterQimallAddonsMchSettings
- */
- class M230810084956AlterQimallAddonsMchSettings extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- try {
- $sql="ALTER TABLE qimall_addons_mch_settings add is_balance_cash_service_fee tinyint(1) not null default 0 comment '商户提现手续费独立设置,1:开启;0:关闭';";
- $this->execute($sql);
- $sql="ALTER TABLE qimall_addons_mch_settings add balance_cash_service_fee decimal(10,2) not null default 0 comment '商户提现手续费';";
- $this->execute($sql);
- }catch (\Exception $e){
- }
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M230810084956AlterQimallAddonsMchSettings cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M230810084956AlterQimallAddonsMchSettings cannot be reverted.\n";
- return false;
- }
- */
- }
|