sqlManage.sql 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. 数据库更新的sql语句跟随git进行提交。
  3. 每次git更新之后,请务必仔细留意并阅读数据库更新脚本文档sqlManageUpdate.md
  4. */
  5. /*
  6. ---------------------------------------------------------------------
  7. -- @author andy.wu
  8. -- @description 公共备注表(ahrs_public_notes)新增文件路径字段(attachment)
  9. -- @time 2023.2.20 16:07
  10. ---------------------------------------------------------------------
  11. alter table ahrs_public_notes
  12. add attachment varchar(255) comment '附件路径';
  13. */
  14. /*
  15. ---------------------------------------------------------------------
  16. -- @author linian
  17. -- @description 修改招聘的学历、学位字典排序
  18. -- @time 2023.2.22 10:02
  19. ---------------------------------------------------------------------
  20. UPDATE sys_dict_data SET dict_sort = '1' WHERE dict_type = 'recruit_education' AND dict_value = '5';
  21. UPDATE sys_dict_data SET dict_sort = '2' WHERE dict_type = 'recruit_education' AND dict_value = '4';
  22. UPDATE sys_dict_data SET dict_sort = '3' WHERE dict_type = 'recruit_education' AND dict_value = '3';
  23. UPDATE sys_dict_data SET dict_sort = '4' WHERE dict_type = 'recruit_education' AND dict_value = '2';
  24. UPDATE sys_dict_data SET dict_sort = '5' WHERE dict_type = 'recruit_education' AND dict_value = '1';
  25. UPDATE sys_dict_data SET dict_sort = '6' WHERE dict_type = 'recruit_education' AND dict_value = '6';
  26. UPDATE sys_dict_data SET dict_sort = '7' WHERE dict_type = 'recruit_education' AND dict_value = '7';
  27. UPDATE sys_dict_data SET dict_sort = '0' WHERE dict_type = 'recruit_degree' AND dict_value = '5';
  28. UPDATE sys_dict_data SET dict_sort = '1' WHERE dict_type = 'recruit_degree' AND dict_value = '4';
  29. UPDATE sys_dict_data SET dict_sort = '2' WHERE dict_type = 'recruit_degree' AND dict_value = '3';
  30. UPDATE sys_dict_data SET dict_sort = '3' WHERE dict_type = 'recruit_degree' AND dict_value = '2';
  31. UPDATE sys_dict_data SET dict_sort = '4' WHERE dict_type = 'recruit_degree' AND dict_value = '1';
  32. UPDATE sys_dict_data SET dict_sort = '5' WHERE dict_type = 'recruit_degree' AND dict_value = '0';
  33. */
  34. /*
  35. -----------------------------------------------------------------------
  36. -- @author andy.wu
  37. -- @description 调动信息表(ahrs_post_transfer),新增人事综合管理部门意见(rszhgl_dept_comment),新增调出单位意见(export_dept_comment)字段
  38. -- @time 2023.2.20 16:07
  39. -----------------------------------------------------------------------
  40. */
  41. alter table ahrs_post_transfer
  42. add rszhgl_dept_comment varchar(255) comment '人事综合管理部门意见';
  43. alter table ahrs_post_transfer
  44. add export_dept_comment varchar(255) comment '调出单位意见';