/**Begin D:\PDM_UPGRADE\PDM1\POM_constraint.sql **/
 EXEC P_ALTERPK 'PK_IM_MDC_BFSTOCK', 'T_IM_MDC_BFSTOCK', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_IM_MDC_BFSTOCK_FSID') CREATE INDEX IDX_IM_MDC_BFSTOCK_FSID ON T_IM_MDC_BFSTOCK ( FSOURCEBILLENTRYID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_IM_MDC_BFSTOCK_FSTID') CREATE INDEX IDX_IM_MDC_BFSTOCK_FSTID ON T_IM_MDC_BFSTOCK ( FSTOCKENTRYID );


 EXEC P_ALTERPK 'PK_IM_MDC_BFLOGENTRY', 'T_IM_MDC_BFLOGENTRY', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_IM_MDC_BACKFLUSHLOG', 'T_IM_MDC_BACKFLUSHLOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_IM_MDC_BACKFLUSHLOG_FORGID') CREATE INDEX IDX_IM_MDC_BACKFLUSHLOG_FORGID ON T_IM_MDC_BACKFLUSHLOG ( FORGID );



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