Don't "reload" the database when migrating to SQL

FYI, I do not recommend migrating to SQL for GP.
Fixes #369
This commit is contained in:
RoboMWM 2018-09-19 00:57:14 -07:00
parent 5e2f128a8d
commit cb6a42cbc6

View File

@ -270,9 +270,7 @@ public class GriefPrevention extends JavaPlugin
FlatFileDataStore flatFileStore = new FlatFileDataStore();
this.dataStore = flatFileStore;
flatFileStore.migrateData(databaseStore);
GriefPrevention.AddLogEntry("Data migration process complete. Reloading data from the database...");
databaseStore.close();
databaseStore = new DatabaseDataStore(this.databaseUrl, this.databaseUserName, this.databasePassword);
GriefPrevention.AddLogEntry("Data migration process complete.");
}
this.dataStore = databaseStore;