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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_POM_XMFSTOCKCHANGELOG_ID') CREATE INDEX IDX_POM_XMFSTOCKCHANGELOG_ID ON T_POM_XMFSTOCKCHANGELOG ( FSTOCKID );


 EXEC P_ALTERPK 'PK_POM_STOCKCHGLOGDETAIL', 'T_POM_STOCKCHGLOGDETAIL', 'FENTRYID', '1';

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



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