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

EXEC p_DropIdx 'IDX_T_BAS_COSTCENTER_NUMBER', 'T_BAS_COSTCENTER';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_BAS_COSTCENTER_NUMBER') CREATE INDEX IDX_T_BAS_COSTCENTER_NUMBER ON T_BAS_COSTCENTER ( FNUMBER ,FSTATUS ,FENABLE ,FISLEAF );


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