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


 EXEC P_ALTERPK 'PK_POM_SPLITLOG', 'T_POM_SPLITLOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_POM_SPLITLOG_FORDERENTRYID') CREATE INDEX IDX_POM_SPLITLOG_FORDERENTRYID ON T_POM_SPLITLOG ( FORDERENTRYID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_POM_SPLITLOG_FORDERID') CREATE INDEX IDX_POM_SPLITLOG_FORDERID ON T_POM_SPLITLOG ( FORDERID );


 EXEC P_ALTERPK 'PK_POM_SPLITENTRY', 'T_POM_SPLITENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_POM_SPLITENTRY_FTENTRYID') CREATE INDEX IDX_POM_SPLITENTRY_FTENTRYID ON T_POM_SPLITENTRY ( FTORDERENTRYID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_POM_SPLITENTRY_FTORDERID') CREATE INDEX IDX_POM_SPLITENTRY_FTORDERID ON T_POM_SPLITENTRY ( FTORDERID );

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



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