Skip to content

Commit

Permalink
Revert "fix database migration (saveNow() used to create if it needed…
Browse files Browse the repository at this point in the history
… to, it no longer does because it really should not!)"

This reverts commit 87f27256fcc0769ba3bc92a97c7c622c353a31e5.
  • Loading branch information
Hidendra committed Feb 1, 2013
1 parent 6f51c30 commit 0239ef4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/java/com/griefcraft/migration/DatabaseMigrator.java
Expand Up @@ -57,10 +57,7 @@ public boolean migrate(PhysDB fromDatabase, PhysDB toDatabase) {
List<Protection> tmp = fromDatabase.loadProtections();

for (Protection protection : tmp) {
// first ensure the protection was created
toDatabase.executeUpdateNoException("INSERT INTO " + toDatabase.getPrefix() + "protections (id) VALUES (" + protection.getId() + ")");

// sync it with the live database
// sync it to the live database
protection.saveNow();
}

Expand Down

0 comments on commit 0239ef4

Please sign in to comment.