Files
dafuweng-saiadmin6.x/server/db/dice_tables_drop_channel_department.sql
2026-04-28 10:24:01 +08:00

11 lines
919 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 移除 Dice_* 表的 channel_id 和 department_id 字段
-- 需 MySQL 8.0.23+ 支持 DROP COLUMN IF EXISTS若版本较低请逐条执行并忽略报错
ALTER TABLE `dice_config` DROP COLUMN IF EXISTS `channel_id`, DROP COLUMN IF EXISTS `department_id`;
ALTER TABLE `dice_player` DROP COLUMN IF EXISTS `channel_id`, DROP COLUMN IF EXISTS `department_id`;
ALTER TABLE `dice_play_record` DROP COLUMN IF EXISTS `channel_id`, DROP COLUMN IF EXISTS `department_id`;
ALTER TABLE `dice_player_ticket_record` DROP COLUMN IF EXISTS `channel_id`, DROP COLUMN IF EXISTS `department_id`;
ALTER TABLE `dice_player_wallet_record` DROP COLUMN IF EXISTS `channel_id`, DROP COLUMN IF EXISTS `department_id`;
ALTER TABLE `dice_reward_config` DROP COLUMN IF EXISTS `channel_id`, DROP COLUMN IF EXISTS `department_id`;
ALTER TABLE `dice_lottery_pool_config` DROP COLUMN IF EXISTS `channel_id`, DROP COLUMN IF EXISTS `department_id`;