Files
ProxyPanel/sql/update/20190213.sql
兔姬桑 a0922521cf 初始化
2020-08-05 03:19:28 +08:00

14 lines
663 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.
-- 适配vnet修正限速字段默认限速为10M
ALTER TABLE `user`
CHANGE COLUMN `speed_limit_per_con` `speed_limit_per_con` BIGINT NOT NULL DEFAULT '10737418240' COMMENT '单连接限速默认10G为0表示不限速单位Byte' AFTER `obfs_param`,
CHANGE COLUMN `speed_limit_per_user` `speed_limit_per_user` BIGINT NOT NULL DEFAULT '10737418240' COMMENT '单用户限速默认10G为0表示不限速单位Byte' AFTER `speed_limit_per_con`;
-- 优化数据库,防止暴库
ALTER TABLE `user_subscribe_log`
ADD INDEX `sid` (`sid`);
ALTER TABLE `user_subscribe`
ADD INDEX `user_id` (`user_id`, `status`),
ADD INDEX `code` (`code`);