delete from history where clock < 1621497797 ;

optimize table history;

delete from history_uint where clock < 1621497797;

optimize table history_uint;

INSERT INTO history_uint (

SELECT * FROM history_uint_old WHERE clock >= 1621497797

);

DROP TABLE history_uint;

CREATE TABLE history_uint LIKE history_uint_old;

RENAME TABLE history_uint_old TO history_uint;