mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-11 15:10:54 +00:00
使用数据库5.7版本JSON特性, 并使用laravel特性做存储修改
This commit is contained in:
15
sql/mod/20200805.sql
Normal file
15
sql/mod/20200805.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
-- 必须先运行php artisan updateTextToJson 来转换数据库数据
|
||||
-- run php artisan updateTextToJson to reformat database data
|
||||
|
||||
-- 可选性更新,推荐数据库版本5.7及以上 更新
|
||||
-- Optional Update, recommend for Mysql >=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,多个用,号分隔';
|
||||
Reference in New Issue
Block a user