Fixes bug 822304 - migration for removal of priority jobs tables

Adds migration, corrects mistake in earlier migration that was fixed on deploy but not in code.