ALTER TABLE routes PARTITION BY RANGE COLUMNS (archive, created)
(
PARTITION p0 VALUES LESS THAN (0, MAXVALUE),
PARTITION p1 VALUES LESS THAN (1, '2019-01-01'),
PARTITION p2 VALUES LESS THAN (1, '2020-01-01'),
PARTITION p3 VALUES LESS THAN (1, '2020-06-01'),
PARTITION p4 VALUES LESS THAN (1, MAXVALUE)
);