/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BCM_constraint.sql **/
 EXEC p_AlterPK 'PK_T_BCM_INVCHANGESTATUS', 'T_BCM_INVCHANGESTATUS', 'fid', '1';
 EXEC P_ALTERPK 'PK_T_BCM_INVELIMTEMPLATE', 'T_BCM_INVELIMTEMPLATE', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_INVELIMTEMPLATE_MS') CREATE INDEX IDX_BCM_INVELIMTEMPLATE_MS ON T_BCM_INVELIMTEMPLATE ( FMODELID ,FSCENARIOID );


 EXEC p_AlterPK 'PK_T_BCM_INVCHANGEENTRY', 'T_BCM_INVCHANGEENTRY', 'fid', '1';
 EXEC p_AlterPK 'PK_T_BCM_CONVERTDIFFENTITY_L', 'T_BCM_CONVERTDIFFENTITY_L', 'fpkid', '1';

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