- debug("db", "onUpgrade called");
- for (int i = oldVersion + 1; i <= newVersion; i++) applyRevision(db, i);
+ debug("db",
+ String.format(Locale.US, "needs upgrade from version %d to version %d", oldVersion,
+ newVersion));
+ for (int i = oldVersion + 1; i <= newVersion; i++)
+ applyRevision(db, i);