Files
game_server/db_migration_device_priority_prefixes.sql

20 lines
850 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.

-- 添加设备优先前缀配置项
-- 该配置用于指定设备选择时的前缀优先级,逗号分隔
-- 例如:"xx,yy,zz" 表示优先选择 xx 开头的设备,其次 yy最后 zz
-- 同优先级内随机选择,实现负载均衡
INSERT INTO system_config (config_key, config_value, config_type, description, is_system, created_at, updated_at)
VALUES (
'device.priority_prefixes',
'',
'STRING',
'设备选择优先前缀逗号分隔例如xx,yy,zz。优先选择匹配前缀的设备同优先级内随机。为空则全随机',
1,
NOW(3),
NOW(3)
)
ON DUPLICATE KEY UPDATE
config_type = 'STRING',
description = '设备选择优先前缀逗号分隔例如xx,yy,zz。优先选择匹配前缀的设备同优先级内随机。为空则全随机',
updated_at = NOW(3);