[FIX] Missing work package column migration for queries

Implements [ticket 3050](https://www.openproject.org/work_packages/3050)