/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\PDM_constraint.sql **/
 EXEC P_ALTERPK 'PK_PDM_ECNVERSION', 'T_PDM_ECNVERSION', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PDM_ECNVERSION_FNUMBER') CREATE INDEX IDX_PDM_ECNVERSION_FNUMBER ON T_PDM_ECNVERSION ( FNUMBER );


 EXEC P_ALTERPK 'PK_PDM_ECNVERSION_L', 'T_PDM_ECNVERSION_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PDM_ECNVERSION_L') CREATE INDEX IDX_PDM_ECNVERSION_L ON T_PDM_ECNVERSION_L ( FID ,FLOCALEID );


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