/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BCM_constraint.sql **/
 EXEC p_AlterPK 'PK_T_BCM_RATEMEMBENTRY', 'T_BCM_RATEMEMBENTRY', 'FEntryID', '1';
 EXEC P_ALTERPK 'PK_T_BCM_STRUCTOFACCOUNT_DM', 'T_BCM_STRUCTOFACCOUNT_DM', 'FENTRYID', '1';

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


 EXEC p_AlterPK 'PK_T_BCM_SPECIALRATE', 'T_BCM_SPECIALRATE', 'fid', '1';

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