/**Begin D:\PDM_UPGRADE\PDM1\POM_constraint.sql **/
 EXEC P_ALTERPK 'PK_POM_MFTREPORTSUMMARY_L', 'T_POM_MFTREPORTSUMMARY_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_POM_MFTREPORTSUMMARY_L_0') CREATE INDEX IDX_POM_MFTREPORTSUMMARY_L_0 ON T_POM_MFTREPORTSUMMARY_L ( FENTRYID ,FLOCALEID );


 EXEC P_ALTERPK 'PK_POM_MFTREPORTSUMMARY', 'T_POM_MFTREPORTSUMMARY', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_POM_MFTREPORTER', 'T_POM_MFTREPORTER', 'FDETAILID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_POM_MFTREPORTER_FENTRYID') CREATE INDEX IDX_POM_MFTREPORTER_FENTRYID ON T_POM_MFTREPORTER ( FENTRYID );


 EXEC P_ALTERPK 'PK_POM_MFTORDERREPORT_L', 'T_POM_MFTORDERREPORT_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_POM_MFTORDERREPORT_L_0') CREATE INDEX IDX_POM_MFTORDERREPORT_L_0 ON T_POM_MFTORDERREPORT_L ( FID ,FLOCALEID );


 EXEC P_ALTERPK 'PK_POM_MFTORDERREPORT', 'T_POM_MFTORDERREPORT', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_POM_MFTORDERREPORT_FBILLNO') CREATE INDEX IDX_POM_MFTORDERREPORT_FBILLNO ON T_POM_MFTORDERREPORT ( FBILLNO );



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