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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HDM_EXCEPTIONRECORD_STATUS') CREATE INDEX IDX_HDM_EXCEPTIONRECORD_STATUS ON T_HDM_EXCEPTIONRECORD ( FSTATUS );

 EXEC P_ALTERPK 'PK_HDM_TRANSFERBILL_D', 'T_HDM_TRANSFERBILL_D', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HDM_TRANSFERBILL_D') CREATE INDEX IDX_HDM_TRANSFERBILL_D ON T_HDM_TRANSFERBILL_D ( FAJOBORGID );


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