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

 EXEC P_ALTERPK 'PK_POM_MROORDER_N', 'T_POM_MROORDER_N', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_POM_MROORDERN_FDUTY') CREATE INDEX IDX_POM_MROORDERN_FDUTY ON T_POM_MROORDER_N ( FDUTY );


 EXEC P_ALTERPK 'PK_POM_MROORDERENTRY_N', 'T_POM_MROORDERENTRY_N', 'FENTRYID', '1';

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


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