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


 EXEC P_ALTERPK 'PK_POM_MROLOCKCONTROL', 'T_POM_MROLOCKCONTROL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_POM_MROLOCKCONTROL_LOCK') CREATE INDEX IDX_POM_MROLOCKCONTROL_LOCK ON T_POM_MROLOCKCONTROL ( FLOCKINFOID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_POM_MROLOCKCONTROL_PJ') CREATE INDEX IDX_POM_MROLOCKCONTROL_PJ ON T_POM_MROLOCKCONTROL ( FPROJECTID );


 EXEC P_ALTERPK 'PK_POM_MROLOCKCONTROLENTRY', 'T_POM_MROLOCKCONTROLENTRY', 'FENTRYID', '1';

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



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