/**Begin D:\PDM_UPGRADE\PDM1\HRCS_constraint.sql **/
 EXEC P_ALTERPK 'PK_HRCS_DYNAFORMCTRL_L', 'T_HRCS_DYNAFORMCTRL_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_DYNAFORMCTRL_L') CREATE INDEX IDX_HRCS_DYNAFORMCTRL_L ON T_HRCS_DYNAFORMCTRL_L ( FID ,FLOCALEID );


 EXEC P_ALTERPK 'PK_HRCS_DYNAFORMFIELD', 'T_HRCS_DYNAFORMFIELD', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_DYNAFORMFIELD') CREATE INDEX IDX_HRCS_DYNAFORMFIELD ON T_HRCS_DYNAFORMFIELD ( FID );


 EXEC P_ALTERPK 'PK_HRCS_DYNAFORMCTRL', 'T_HRCS_DYNAFORMCTRL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_DYNAFORMCTRL') CREATE INDEX IDX_HRCS_DYNAFORMCTRL ON T_HRCS_DYNAFORMCTRL ( FENTITYTYPEID );


 EXEC P_ALTERPK 'PK_HRCS_DYNAFORMFIELD_L', 'T_HRCS_DYNAFORMFIELD_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_DYNAFORMFIELD_L') CREATE INDEX IDX_HRCS_DYNAFORMFIELD_L ON T_HRCS_DYNAFORMFIELD_L ( FENTRYID ,FLOCALEID );



/**End D:\PDM_UPGRADE\PDM1\HRCS_constraint.sql **/
