}
//Attempt to run all updates in order
Collections.sort(updateList);
for (DbUpdater updater : updateList) {
if (updater.getFromVersion() == schemaVersion.getVersion()) {
boolean success = updater.update(sessionFactory);
String updateName = updater.getClass().getSimpleName();
if (success) {
System.out.println("Ran schema update " + updateName);
System.out.println("New schema version " + updater.getToVersion());
schemaVersion.setVersion(updater.getToVersion());