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

 EXEC P_ALTERPK 'PK_POM_MROLOCKENTRY', 'T_POM_MROLOCKENTRY', 'FENTRYID', '1';

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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_POM_MROLRY_FSEQ') CREATE INDEX IDX_POM_MROLRY_FSEQ ON T_POM_MROLOCKENTRY ( FSEQ );
EXEC p_DropIdx 'PK_POM_MROLOCKCONTROLENTRY', 'T_POM_MROLOCKCONTROLENTRY';
EXEC p_AlterPK 'PK_T_POM_MROLOCKCONTROLENTRY', 'T_POM_MROLOCKCONTROLENTRY', 'FDETAILID', '1';

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