bladex.mysql.upgrade.4.1.0.to.4.2.0.sql 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. -- -----------------------------------
  2. -- 创建一个新的租户数据源表,与原数据源表结构一致
  3. -- -----------------------------------
  4. -- 复制表结构
  5. CREATE TABLE blade_tenant_datasource LIKE blade_datasource;
  6. -- 复制表数据
  7. INSERT INTO blade_tenant_datasource SELECT * FROM blade_datasource;
  8. -- -----------------------------------
  9. -- 修改菜单名称避免重名
  10. -- -----------------------------------
  11. UPDATE blade_menu SET `name`='流程状态' WHERE `code`='flow_manager';
  12. -- -----------------------------------
  13. -- 新增本地存储字典
  14. -- -----------------------------------
  15. INSERT INTO `blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `status`, `is_deleted`) VALUES (1123598814738676231, 1123598814738676224, 'oss', '7', '本地存储', 7, '', 0, 1, 0);
  16. -- -----------------------------------
  17. -- 代码生成新增字段
  18. -- -----------------------------------
  19. ALTER TABLE `blade_code`
  20. ADD COLUMN `menu_id` bigint NULL COMMENT '上级菜单主键' AFTER `model_id`;
  21. -- -----------------------------------
  22. -- 代码生成配置表
  23. -- -----------------------------------
  24. CREATE TABLE `blade_code_setting` (
  25. `id` bigint NOT NULL COMMENT '主键',
  26. `settings` longtext NULL COMMENT '配置项',
  27. `status` int NULL DEFAULT 1 COMMENT '状态',
  28. `is_deleted` int NULL DEFAULT 0 COMMENT '是否已删除',
  29. PRIMARY KEY (`id`)
  30. ) COMMENT = '代码生成器配置表';
  31. -- -----------------------------------
  32. -- 更新菜单图标
  33. -- -----------------------------------
  34. UPDATE blade_menu SET source='iconfont icon-yonghu' WHERE id='1123598815738675204';
  35. UPDATE blade_menu SET source='iconfont icon-quanxianshenpi' WHERE id='1164733389668962251';
  36. UPDATE blade_menu SET source='iconfont icon-xiaoxitongzhi' WHERE id='1164733389658962251';
  37. UPDATE blade_menu SET source='iconfont icon-xingzhuang-tupian' WHERE id='1123598815738675299';
  38. UPDATE blade_menu SET source='iconfont icon-yingjian' WHERE id='1123598815738675298';
  39. UPDATE blade_menu SET source='iconfont icon-shoucang' WHERE id='1123598815738675209';
  40. UPDATE blade_menu SET source='iconfont icon-shouji' WHERE id='1123598815738675261';
  41. UPDATE blade_menu SET source='iconfont icon-peiwangyindao' WHERE id='1164733399668962201';
  42. UPDATE blade_menu SET source='iconfont icon-fuwudiqiu' WHERE id='1164733399668962202';
  43. UPDATE blade_menu SET source='iconfont icon-liujisuan' WHERE id='1164733399669962601';
  44. UPDATE blade_menu SET source='iconfont icon-PIR' WHERE id='1164733399669962501';
  45. UPDATE blade_menu SET source='iconfont icon-shebeizhuangtai' WHERE id='1123598815738675201';
  46. UPDATE blade_menu SET source='iconfont icon-guize' WHERE id='1123598815738675266';
  47. UPDATE blade_menu SET source='iconfont icon-shujukanban' WHERE id='1164733399669962301';
  48. UPDATE blade_menu SET source='iconfont icon-yishouquan' WHERE id='1123598815738675307';
  49. UPDATE blade_menu SET source='iconfont icon-huowudui' WHERE id='1123598815738675267';
  50. UPDATE blade_menu SET source='iconfont icon-shebeikaifa' WHERE id='1123598815738675217';
  51. UPDATE blade_menu SET source='iconfont icon-gaojing' WHERE id='1123598815738675210';
  52. UPDATE blade_menu SET source='iconfont icon-lianjieliu' WHERE id='1123598815738675280';
  53. UPDATE blade_menu SET source='iconfont icon-guanlianshebei' WHERE id='1164733399669962401';
  54. UPDATE blade_menu SET source='iconfont icon-hezuohuobanmiyueguanli' WHERE id='1123598815738675308';
  55. UPDATE blade_menu SET source='iconfont icon-ceshishenqing' WHERE id='1123598815738675309';
  56. UPDATE blade_menu SET source='iconfont icon-renjijiaohu' WHERE id='1123598815738675311';