execute("CREATE TABLE `qimall_addons_score_bonus_capital` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id', `mall_id` int(11) NOT NULL COMMENT '商城id', `order_id` int(11) NOT NULL COMMENT '订单id', `goods_price` decimal(19,2) DEFAULT NULL COMMENT '订单营业额', `bonus_pre` int(3) DEFAULT NULL COMMENT '订单投入资金池的比例, 单位%', `bonus_price` decimal(19,2) DEFAULT NULL COMMENT '投入资金池的金额', `status` tinyint(1) DEFAULT NULL COMMENT '状态[-1:删除;0:禁用;1启用]', `created_at` int(11) DEFAULT NULL COMMENT '创建时间', `updated_at` int(11) DEFAULT NULL COMMENT '修改时间', `date_time` int(11) DEFAULT NULL COMMENT '所属日期', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='积分分红资金池数据表'"); } /** * {@inheritdoc} */ public function safeDown() { echo "M240624091149CreateQimallAddonsScoreBonusCapital cannot be reverted.\n"; return false; } /* // Use up()/down() to run migration code without a transaction. public function up() { } public function down() { echo "M240624091149CreateQimallAddonsScoreBonusCapital cannot be reverted.\n"; return false; } */ }