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/11722_not_replicated.up

7 lines
307 B

use sipstats;
alter table statistics remove partitioning;
set @stm = concat('alter table statistics partition by range (floor(timestamp)) (partition p_old values less than (', coalesce((select floor(max(timestamp)) from statistics), 0) + 600, '))');
prepare st from @stm;
execute st;
deallocate prepare st;