execute($sql); $sql="alter table qimall_order_marketing add `give_balance_settlement` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '赠送余额的结算方式:0:订单完成,1:支付完成' after give_score_settlement"; $this->execute($sql); }catch (\Exception $e){ } } /** * {@inheritdoc} */ public function safeDown() { echo "M230116011853AddColumnBalanceGiveSettingQimallGoods cannot be reverted.\n"; return false; } /* // Use up()/down() to run migration code without a transaction. public function up() { } public function down() { echo "M230116011853AddColumnBalanceGiveSettingQimallGoods cannot be reverted.\n"; return false; } */ }