/**Begin D:\PDM_UPGRADE_1.4\PDM_UPGRADE\PDM1\HDM_constraint.sql **/
 EXEC P_ALTERPK 'PK_HDM_TRANSFERBILL_E', 'T_HDM_TRANSFERBILL_E', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_HDM_TRANSFERBILL_E' AND KSQL_INDNAME = 'IDX_HDM_TRANSFERBILL_E') CREATE INDEX IDX_HDM_TRANSFERBILL_E ON T_HDM_TRANSFERBILL_E ( FAPPREMOVERELID );


 EXEC P_ALTERPK 'PK_HDM_PARTTIMEAPPLYBILL_B', 'T_HDM_PARTTIMEAPPLYBILL_B', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_HDM_PARTTIMEAPPLYBILL_B' AND KSQL_INDNAME = 'IDX_HDM_PARTTIMEAPPLYBILL_B') CREATE INDEX IDX_HDM_PARTTIMEAPPLYBILL_B ON T_HDM_PARTTIMEAPPLYBILL_B ( FAPPREMOVERELID );



/**End D:\PDM_UPGRADE_1.4\PDM_UPGRADE\PDM1\HDM_constraint.sql **/
