20200713.sql 1.1 KB

12345678910111213141516
  1. -- 请选择性 更新本文件! 以往ssrpanel使用label(标签)来区分用户的,可以使用本文件清理label, 再升级为用level(等级)区分的新版本
  2. -- Optional update! For original ssrpanel update Label to Level as new way to rank the user-node.
  3. DROP TABLE IF EXISTS `ss_node_label`;
  4. CREATE TABLE `ss_node_label`
  5. (
  6. `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  7. `node_id` INT(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT '节点ID',
  8. `label_id` INT(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT '标签ID',
  9. PRIMARY KEY (`id`),
  10. INDEX `idx_node_label` (`node_id`, `label_id`)
  11. ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT ='节点标签';
  12. -- 更新sql之后 | After sql update
  13. -- 运行升级命令前, 请先给商品【套餐】加上等级,再运行 php artisan updateUserLevel 来更新等级; 别忘了同样要给节点加等级 和 标签!
  14. -- 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.