Set db type to mysql if mysql is enabled.

This commit is contained in:
Jon Huang 2024-01-30 20:37:35 -08:00
parent 4471ee208d
commit 8e4e2368af
1 changed files with 1 additions and 0 deletions

View File

@ -207,6 +207,7 @@ public class Config extends Language {
if (this.has("use-mysql") && this.getBoolean("use-mysql")) {
// legacy configuration has mysql enabled
this.DB_TYPE = DatabaseType.MYSQL;
DEFAULT_VALUES.put("db-type", DatabaseType.MYSQL.toString().toLowerCase(Locale.ROOT));
}
this.DB_PREFIX = this.getString("table-prefix");
this.DB_HOST = this.getString("db-host");