Fixed RemoveIncorrectTebexPackageDataPatch

This commit is contained in:
Risto Lahtela 2021-04-27 19:58:14 +03:00
parent 9b93142ab4
commit 049815487b

View File

@ -32,7 +32,7 @@ public class RemoveIncorrectTebexPackageDataPatch extends Patch {
@Override
public boolean hasBeenApplied() {
return hasTable("plan_tebex_payments") && !query(hasWrongRows());
return !hasTable("plan_tebex_payments") || !query(hasWrongRows());
}
private Query<Boolean> hasWrongRows() {