Change from flatfile to sqlite by default

This commit is contained in:
Xephi59
2015-07-06 02:43:12 +02:00
parent 6234f55b96
commit 53590cf029
2 changed files with 3 additions and 3 deletions
@@ -610,10 +610,10 @@ public final class Settings extends YamlConfiguration {
private static DataSourceType getDataSource() {
String key = "DataSource.backend";
try {
return DataSource.DataSourceType.valueOf(configFile.getString(key).toUpperCase());
return DataSource.DataSourceType.valueOf(configFile.getString(key, "sqlite").toUpperCase());
} catch (IllegalArgumentException ex) {
ConsoleLogger.showError("Unknown database backend; defaulting to file database");
return DataSource.DataSourceType.FILE;
return DataSource.DataSourceType.SQLITE;
}
}