Created by: efritz
Ensure that the operation type depends on the migration direction. We can't hard-code up direction if we also want to support downgrades.
Tested locally.