execute("ALTER TABLE `qimall_user_extra` ADD COLUMN `target_weight` DECIMAL(5,2) NOT NULL DEFAULT 0 COMMENT '目标体重', ADD COLUMN `body_weight` DECIMAL(5,2) NOT NULL DEFAULT '0.00' COMMENT '体重' AFTER `target_weight`, ADD COLUMN `body_height` DECIMAL(5,2) NOT NULL DEFAULT '0.00' COMMENT '身高' AFTER `body_weight`;"); } /** * {@inheritdoc} */ public function safeDown() { echo "M240521070855BodyFatScaleAddColumn cannot be reverted.\n"; return false; } /* // Use up()/down() to run migration code without a transaction. public function up() { } public function down() { echo "M240521070855BodyFatScaleAddColumn cannot be reverted.\n"; return false; } */ }