diff --git a/src/main/java/com/griefcraft/migration/DatabaseMigrator.java b/src/main/java/com/griefcraft/migration/DatabaseMigrator.java index d6bd0577..b0364eae 100644 --- a/src/main/java/com/griefcraft/migration/DatabaseMigrator.java +++ b/src/main/java/com/griefcraft/migration/DatabaseMigrator.java @@ -57,10 +57,7 @@ public boolean migrate(PhysDB fromDatabase, PhysDB toDatabase) { List 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(); }