Files
ProxyPanel/sql/mod/20200805.sql

16 lines
815 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.
-- 不管是否更新数据库,先运行 php artisan updateTextToJson 来转换数据库数据为最新适配的版本
-- run php artisan updateTextToJson to reformat database even if you aren't going to update the following sql
-- 可选性更新推荐数据库版本5.7及以上更新
-- Optional Update, recommend for Mysql version >=5.7
ALTER TABLE `referral_apply`
CHANGE `link_logs` `link_logs` JSON NOT NULL COMMENT '关联返利日志ID例如1,3,4';
ALTER TABLE `user_group`
CHANGE `nodes` `nodes` JSON DEFAULT NULL COMMENT '关联的节点ID多个用,号分隔';
ALTER TABLE `rule_group`
CHANGE `rules` `rules` JSON DEFAULT NULL COMMENT '关联的规则ID多个用,号分隔',
CHANGE `nodes` `nodes` JSON DEFAULT NULL COMMENT '关联的节点ID多个用,号分隔';