Print progress info from the MigrateAccountPatchReviewDb program

Change-Id: I54b26eebd530d7f5e6ac63c9570fcf5de1534ff1
This commit is contained in:
Saša Živkov
2017-11-17 12:40:34 +01:00
committed by Jacek Centkowski
parent 1cf8629107
commit 69678200e8

View File

@@ -95,8 +95,10 @@ public class MigrateAccountPatchReviewDb extends SiteProgram {
while (!rows.isEmpty()) {
insertRows(targetCon, targetStmt, rows);
offset += rows.size();
System.out.printf("%8d rows migrated\n", offset);
rows = selectRows(sourceStmt, offset);
}
System.out.println("Done");
}
return 0;
}