/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BCM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BCM_CURRENCYRECORD', 'T_BCM_CURRENCYRECORD', 'FENTITYID', '1';

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


 EXEC P_ALTERPK 'PK_T_BCM_AGGSHIELDRULE', 'T_BCM_AGGSHIELDRULE', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_AGGSHIELDRULE') CREATE INDEX IDX_BCM_AGGSHIELDRULE ON T_BCM_AGGSHIELDRULE ( FMODELID );


 EXEC P_ALTERPK 'PK_T_BCM_AGGSHIELDRULEDIS', 'T_BCM_AGGSHIELDRULEDIS', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_AGGSHIELDRULEDIS') CREATE INDEX IDX_BCM_AGGSHIELDRULEDIS ON T_BCM_AGGSHIELDRULEDIS ( FMEMBERID );



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