旧版本升级v2.5.0.sql 855 B

123456789101112131415161718
  1. ------------更新语句
  2. Use `user-center`;
  3. alter table sys_role add `tenant_id` varchar(32) DEFAULT '' COMMENT '租户字段';
  4. update sys_role set tenant_id = 'webApp'
  5. alter table sys_menu add `tenant_id` varchar(32) DEFAULT '' COMMENT '租户字段';
  6. update sys_menu set tenant_id = 'webApp'
  7. Use `file-center`;
  8. alter table file_info add `tenant_id` varchar(32) DEFAULT '' COMMENT '租户字段';
  9. update file_info set tenant_id = 'webApp'
  10. Use `oauth-center`;
  11. alter table oauth_client_details add `client_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '' COMMENT '应用名称'
  12. update oauth_client_details set client_name = 'pc端' where client_id = 'webApp'
  13. update oauth_client_details set client_name = '移动端' where client_id = 'app'
  14. update oauth_client_details set client_name = '第三方应用' where client_id = 'zlt'