/**Begin D:\k3Cloud\PDM_UPGRADE\PDM1\MDS_constraint.sql **/
 EXEC P_ALTERPK 'PK_POM_DISTRIBPLANX', 'T_POM_DISTRIBPLANX', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_POM_DISTRIBPLANX_ID') CREATE INDEX IDX_POM_DISTRIBPLANX_ID ON T_POM_DISTRIBPLANX ( FBILLSTATUS );


 EXEC P_ALTERPK 'PK_POM_DISTRIBPLANXENT', 'T_POM_DISTRIBPLANXENT', 'FENTRYID', '1';

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



/**End D:\k3Cloud\PDM_UPGRADE\PDM1\MDS_constraint.sql **/
