Files
ProxyPanel/sql/mod/20200713.sql
2020-08-05 03:51:22 +08:00

16 lines
1.1 KiB
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.
-- 请选择性 更新本文件! 以往ssrpanel使用label标签来区分用户的可以使用本文件清理label, 再升级为用level等级区分的新版本
-- Optional update! For original ssrpanel update Label to Level as new way to rank the user-node.
DROP TABLE IF EXISTS `ss_node_label`;
CREATE TABLE `ss_node_label`
(
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`node_id` INT(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT '节点ID',
`label_id` INT(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT '标签ID',
PRIMARY KEY (`id`),
INDEX `idx_node_label` (`node_id`, `label_id`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT ='节点标签';
-- 更新sql之后 | After sql update
-- 运行升级命令前, 请先给商品【套餐】加上等级,再运行 php artisan updateUserLevel 来更新等级; 别忘了同样要给节点加等级 和 标签!
-- Before apply level, set up goods in the level your want in the goods edition page, then run 'php artisan updateUserLevel' to update Level; Don't forget add level and label to nodes afterward.