migrations - add id-based filtering option