You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
db-schema/db_scripts/diff/13474.up

6 lines
379 B

use billing;
set @exist := (select count(*) from information_schema.statistics where table_name = 'billing_fees_history' and index_name = 'bfhsems_idx');
set @sqlstmt := if( @exist > 0, 'select ''INFO: Index already exists.''', 'create index bfhsems_idx on billing_fees_history (billing_profile_id,bf_id,type,destination) using btree');
PREPARE stmt FROM @sqlstmt;
EXECUTE stmt;