/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\POM_constraint.sql **/

 EXEC P_ALTERPK 'PK_POM_MROMULCARD', 'T_POM_MROMULCARD', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_POM_MROMRD_FENTRYID') CREATE INDEX IDX_POM_MROMRD_FENTRYID ON T_POM_MROMULCARD ( FENTRYID ,FBASEDATAID );


 EXEC P_ALTERPK 'PK_POM_MROMULORDER', 'T_POM_MROMULORDER', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_POM_MROMER_FENTRYID') CREATE INDEX IDX_POM_MROMER_FENTRYID ON T_POM_MROMULORDER ( FENTRYID ,FBASEDATAID );


 EXEC P_ALTERPK 'PK_POM_MULMROCB', 'T_POM_MULMROCB', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_POM_MROMCB_FENTRYID') CREATE INDEX IDX_POM_MROMCB_FENTRYID ON T_POM_MULMROCB ( FENTRYID ,FBASEDATAID );



/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\POM_constraint.sql **/