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:
parent
5e2f128a8d
commit
cb6a42cbc6
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user