execute($sql); $sql="ALTER TABLE qimall_addons_store_cate add collect_service_fee decimal(12,2) not null default 0 comment '服务费比例';"; $this->execute($sql); }catch (Exception $e){ } } /** * {@inheritdoc} */ public function safeDown() { echo "M230203072720AddColumnIntoQimallAddonsStoreCate cannot be reverted.\n"; return false; } /* // Use up()/down() to run migration code without a transaction. public function up() { } public function down() { echo "M230203072720AddColumnIntoQimallAddonsStoreCate cannot be reverted.\n"; return false; } */ }