修改域名为h55555game.top
This commit is contained in:
7
server/db/dice_lottery_config_add_profit_amount.sql
Normal file
7
server/db/dice_lottery_config_add_profit_amount.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
-- 彩金池盈利字段:使用 profit_amount,计算方式为每局抽奖累加:付费=win_coin-paid_amount,免费=win_coin
|
||||
-- 1. 添加 profit_amount(若已存在则报错可忽略)
|
||||
ALTER TABLE `dice_lottery_pool_config` ADD COLUMN `profit_amount` decimal(14,2) NOT NULL DEFAULT 0.00 COMMENT '池子累计盈利(每局抽奖累加:付费=win_coin-paid_amount,免费=win_coin)' AFTER `t5_weight`;
|
||||
-- 2. 若表中原有 ev 字段,可将数据同步到 profit_amount(若无 ev 可注释本行)
|
||||
-- UPDATE `dice_lottery_pool_config` SET `profit_amount` = IFNULL(`ev`, 0) WHERE 1;
|
||||
-- 3. 可选:删除旧字段 ev
|
||||
-- ALTER TABLE `dice_lottery_pool_config` DROP COLUMN `ev`;
|
||||
Reference in New Issue
Block a user