Change from flatfile to sqlite by default
This commit is contained in:
parent
6234f55b96
commit
53590cf029
@ -610,10 +610,10 @@ public final class Settings extends YamlConfiguration {
|
|||||||
private static DataSourceType getDataSource() {
|
private static DataSourceType getDataSource() {
|
||||||
String key = "DataSource.backend";
|
String key = "DataSource.backend";
|
||||||
try {
|
try {
|
||||||
return DataSource.DataSourceType.valueOf(configFile.getString(key).toUpperCase());
|
return DataSource.DataSourceType.valueOf(configFile.getString(key, "sqlite").toUpperCase());
|
||||||
} catch (IllegalArgumentException ex) {
|
} catch (IllegalArgumentException ex) {
|
||||||
ConsoleLogger.showError("Unknown database backend; defaulting to file database");
|
ConsoleLogger.showError("Unknown database backend; defaulting to file database");
|
||||||
return DataSource.DataSourceType.FILE;
|
return DataSource.DataSourceType.SQLITE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@ DataSource:
|
|||||||
# Username about Database Connection Infos
|
# Username about Database Connection Infos
|
||||||
mySQLUsername: authme
|
mySQLUsername: authme
|
||||||
# Can be set to : file, sqlite, mysql
|
# Can be set to : file, sqlite, mysql
|
||||||
backend: file
|
backend: sqlite
|
||||||
# Column for storing players lastlogins
|
# Column for storing players lastlogins
|
||||||
mySQLColumnLastLogin: lastlogin
|
mySQLColumnLastLogin: lastlogin
|
||||||
# Database Name, use with converters or as SQLITE database name
|
# Database Name, use with converters or as SQLITE database name
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user