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();
|
FlatFileDataStore flatFileStore = new FlatFileDataStore();
|
||||||
this.dataStore = flatFileStore;
|
this.dataStore = flatFileStore;
|
||||||
flatFileStore.migrateData(databaseStore);
|
flatFileStore.migrateData(databaseStore);
|
||||||
GriefPrevention.AddLogEntry("Data migration process complete. Reloading data from the database...");
|
GriefPrevention.AddLogEntry("Data migration process complete.");
|
||||||
databaseStore.close();
|
|
||||||
databaseStore = new DatabaseDataStore(this.databaseUrl, this.databaseUserName, this.databasePassword);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.dataStore = databaseStore;
|
this.dataStore = databaseStore;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user