/**Begin D:\PDM_UPGRADE\PDM1\HDM_constraint.sql **/
 EXEC P_ALTERPK 'PK_HDM_REGBASEBILL_C', 'T_HDM_REGBASEBILL_C', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'ID_HDM_REGBASEBILL_C_FBB_E_TID') CREATE INDEX ID_HDM_REGBASEBILL_C_FBB_E_TID ON T_HDM_REGBASEBILL_C ( FBB_E_TID );


 EXEC P_ALTERPK 'PK_HDM_TRANSFERBILL_C', 'T_HDM_TRANSFERBILL_C', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'ID_HDM_TRANSFERBILL_C_FBB') CREATE INDEX ID_HDM_TRANSFERBILL_C_FBB ON T_HDM_TRANSFERBILL_C ( FBB_D_TID );


 EXEC P_ALTERPK 'PK_HDM_PARTTIMEAPPLYBILL_C', 'T_HDM_PARTTIMEAPPLYBILL_C', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'ID_HDM_PARTTIMEAPPLYBILL_C') CREATE INDEX ID_HDM_PARTTIMEAPPLYBILL_C ON T_HDM_PARTTIMEAPPLYBILL_C ( FBB_D_TID );


 EXEC P_ALTERPK 'PK_HDM_PARTTIMEENDBILL_C', 'T_HDM_PARTTIMEENDBILL_C', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'ID_HDM_PARTTIMEENDBILL_C') CREATE INDEX ID_HDM_PARTTIMEENDBILL_C ON T_HDM_PARTTIMEENDBILL_C ( FBB_D_TID );



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