execute("alter table qimall_addons_coupon_user_relate add `store_id` int(10) NOT NULL DEFAULT '0' COMMENT '门店id'"); }catch (\Exception $e){ var_dump($e->getMessage()); } } /** * {@inheritdoc} */ public function safeDown() { echo "M221011053246AddStoreIdColumnToQimallAddonsCouponUserRelate cannot be reverted.\n"; return false; } /* // Use up()/down() to run migration code without a transaction. public function up() { } public function down() { echo "M221011053246AddStoreIdColumnToQimallAddonsCouponUserRelate cannot be reverted.\n"; return false; } */ }