Fixed migration to database from flat file.
Broke during perf updates.
This commit is contained in:
1 parent
ff491c1443
commit
9e4c1e58ce
1 file changed
+1
@@ -200,6 +200,7 @@ public class GriefPrevention extends JavaPlugin
|
|||||||
{
|
{
|
||||||
GriefPrevention.AddLogEntry("There appears to be some data on the hard drive. Migrating those data to the database...");
|
GriefPrevention.AddLogEntry("There appears to be some data on the hard drive. Migrating those data to the database...");
|
||||||
FlatFileDataStore flatFileStore = new FlatFileDataStore();
|
FlatFileDataStore flatFileStore = new FlatFileDataStore();
|
||||||
|
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. Reloading data from the database...");
|
||||||
databaseStore.close();
|
databaseStore.close();
|
||||||
|
|||||||
Reference in new issue
Block a user