hr_shrmv_preScript.xml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <doc>
  3. <item>
  4. <ksql>
  5. If exists (select * from KSQL_USERTABLES where KSQL_TABNAME='T_HR_PersonWorkExp')
  6. begin
  7. if exists (select * from KSQL_USERCOLUMNS where KSQL_COL_NAME ='FJobDesc' and KSQL_COL_TABNAME='T_HR_PersonWorkExp' and KSQL_COL_TYPE!='CLOB')
  8. begin
  9. alter table T_HR_PersonWorkExp add tempfield_20160504 clob(10000)
  10. update T_HR_PersonWorkExp set tempfield_20160504=FJobDesc
  11. alter table T_HR_PersonWorkExp drop column FJobDesc
  12. alter table T_HR_PersonWorkExp add FJobDesc clob(10000)
  13. update T_HR_PersonWorkExp set FJobDesc=tempfield_20160504
  14. alter table T_HR_PersonWorkExp drop column tempfield_20160504
  15. end
  16. end
  17. </ksql>
  18. <bizType>rec</bizType>
  19. <description>为招聘扩展字段长度</description>
  20. </item>
  21. <item>
  22. <ksql>
  23. If exists (select * from KSQL_USERTABLES where KSQL_TABNAME='T_HR_PersonCertify')
  24. begin
  25. if exists (select * from KSQL_USERCOLUMNS where KSQL_COL_NAME ='FRemark' and KSQL_COL_TABNAME='T_HR_PersonCertify')
  26. begin
  27. alter table T_HR_PersonCertify alter column FRemark nvarchar(800)
  28. end
  29. end
  30. </ksql>
  31. <bizType>rec</bizType>
  32. <description>为招聘扩展字段长度</description>
  33. </item>
  34. <item>
  35. <ksql>
  36. If exists (select * from KSQL_USERTABLES where KSQL_TABNAME='T_MP_ProjectExperience')
  37. begin
  38. if not exists (select * from KSQL_USERCOLUMNS where KSQL_COL_NAME ='FPDescription' and KSQL_COL_TABNAME='T_MP_ProjectExperience')
  39. begin
  40. alter table T_MP_ProjectExperience add FPDescription clob(10000)
  41. update T_MP_ProjectExperience set FPDescription=FDescription_l2
  42. end
  43. if exists (select * from KSQL_USERCOLUMNS where KSQL_COL_NAME ='FMainResposibility' and KSQL_COL_TABNAME='T_MP_ProjectExperience' and KSQL_COL_TYPE!='CLOB')
  44. begin
  45. alter table T_MP_ProjectExperience add tempfield_20160504 clob(10000)
  46. update T_MP_ProjectExperience set tempfield_20160504=FMainResposibility
  47. alter table T_MP_ProjectExperience drop column FMainResposibility
  48. alter table T_MP_ProjectExperience add FMainResposibility clob(10000)
  49. update T_MP_ProjectExperience set FMainResposibility=tempfield_20160504
  50. alter table T_MP_ProjectExperience drop column tempfield_20160504
  51. end
  52. end
  53. </ksql>
  54. <bizType>rec</bizType>
  55. <description>为招聘扩展字段长度</description>
  56. </item>
  57. </doc>