/**Begin D:\PDM_UPGRADE\PDM1\HRPTMC_constraint.sql **/
 EXEC P_ALTERPK 'PK_HRPTMC_ESIDXMODLOG', 'T_HRPTMC_ESIDXMODLOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_HRPTMC_ESIDXMODLOG' AND KSQL_INDNAME = 'IDX_HRPTMC_ESIDXMODLOG_REP') CREATE INDEX IDX_HRPTMC_ESIDXMODLOG_REP ON T_HRPTMC_ESIDXMODLOG ( FREPLACEIDX );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_HRPTMC_ESIDXMODLOG' AND KSQL_INDNAME = 'IDX_HRPTMC_ESIDXMODLOG_IDX') CREATE INDEX IDX_HRPTMC_ESIDXMODLOG_IDX ON T_HRPTMC_ESIDXMODLOG ( FESIDX );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_HRPTMC_ESIDXMODLOG' AND KSQL_INDNAME = 'IDX_HRPTMC_ESIDXMODLOG_BD') CREATE INDEX IDX_HRPTMC_ESIDXMODLOG_BD ON T_HRPTMC_ESIDXMODLOG ( FBDIDX );


 EXEC P_ALTERPK 'PK_HRPTMC_ESREFMODLOG', 'T_HRPTMC_ESREFMODLOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_HRPTMC_ESREFMODLOG' AND KSQL_INDNAME = 'IDX_HRPTMC_ESREFMODLOG_BIZ') CREATE INDEX IDX_HRPTMC_ESREFMODLOG_BIZ ON T_HRPTMC_ESREFMODLOG ( FENTITYPK );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_HRPTMC_ESREFMODLOG' AND KSQL_INDNAME = 'IDX_HRPTMC_ESREFMODLOG_OIDX') CREATE INDEX IDX_HRPTMC_ESREFMODLOG_OIDX ON T_HRPTMC_ESREFMODLOG ( FOLDESIDX );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_HRPTMC_ESREFMODLOG' AND KSQL_INDNAME = 'IDX_HRPTMC_ESREFMODLOG_NIDX') CREATE INDEX IDX_HRPTMC_ESREFMODLOG_NIDX ON T_HRPTMC_ESREFMODLOG ( FNOWESIDX );



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