[BUGFIX] Ensure tables already processed are skipped when resuming upgrade