/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BEI_constraint.sql **/
EXEC p_DropIdx 'IDX_BEI_TEMPLATEASSIGN_L', 'T_BEI_TEMPLATEASSIGN_L';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BEI_TEMPLATEASSIGN_L') CREATE INDEX IDX_BEI_TEMPLATEASSIGN_L ON T_BEI_TEMPLATEASSIGN_L ( FID ,FLOCALEID );

EXEC p_DropIdx 'IDX_T_BEI_BANKTRANSDOWNBILL_L', 'T_BEI_BANKTRANSDOWNBILL_L';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_BEI_BANKTRANSDOWNBILL_L') CREATE  CLUSTERED INDEX IDX_T_BEI_BANKTRANSDOWNBILL_L ON T_BEI_BANKTRANSDOWNBILL_L ( FID ,FLOCALEID );

EXEC p_DropIdx 'IDX_T_BEI_BANKTRANSUPBILL_L', 'T_BEI_BANKTRANSUPBILL_L';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_BEI_BANKTRANSUPBILL_L') CREATE  CLUSTERED INDEX IDX_T_BEI_BANKTRANSUPBILL_L ON T_BEI_BANKTRANSUPBILL_L ( FID ,FLOCALEID );

EXEC p_DropIdx 'IDX_T_BEI_UPDATEPAYSTAT_L', 'T_BEI_UPDATEPAYSTAT_L';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_BEI_UPDATEPAYSTAT_L') CREATE  CLUSTERED INDEX IDX_T_BEI_UPDATEPAYSTAT_L ON T_BEI_UPDATEPAYSTAT_L ( FID ,FLOCALEID );


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