Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ extra.set("classifier", System.getProperty("archive.classifier"))
extra.set("sha", System.getProperty("github.sha"))

group = "fr.maxlego08.sarah"
version = "1.21"
version = "1.21.1"

rootProject.extra.properties["sha"]?.let { sha ->
version = sha
Expand Down
18 changes: 9 additions & 9 deletions src/main/java/fr/maxlego08/sarah/DatabaseConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,39 +42,39 @@ public DatabaseConfiguration(String tablePrefix, String user, String password, i
}

public static DatabaseConfiguration create(String user, String password, int port, String host, String database, DatabaseType databaseType) {
return new DatabaseConfiguration(null, user, password, port, host, database, false, databaseType);
return new DatabaseConfiguration("", user, password, port, host, database, false, databaseType);
}

public static DatabaseConfiguration create(String user, String password, int port, String host, String database) {
return new DatabaseConfiguration(null, user, password, port, host, database, false, DatabaseType.MYSQL);
return new DatabaseConfiguration("", user, password, port, host, database, false, DatabaseType.MYSQL);
}

public static DatabaseConfiguration createMariaDb(String user, String password, int port, String host, String database) {
return new DatabaseConfiguration(null, user, password, port, host, database, false, DatabaseType.MARIADB);
return new DatabaseConfiguration("", user, password, port, host, database, false, DatabaseType.MARIADB);
}

public static DatabaseConfiguration create(String user, String password, int port, String host, String database, boolean debug) {
return new DatabaseConfiguration(null, user, password, port, host, database, debug, DatabaseType.MYSQL);
return new DatabaseConfiguration("", user, password, port, host, database, debug, DatabaseType.MYSQL);
}

public static DatabaseConfiguration createMariaDb(String user, String password, int port, String host, String database, boolean debug) {
return new DatabaseConfiguration(null, user, password, port, host, database, debug, DatabaseType.MARIADB);
return new DatabaseConfiguration("", user, password, port, host, database, debug, DatabaseType.MARIADB);
}

public static DatabaseConfiguration create(String user, String password, String host, String database, DatabaseType databaseType) {
return new DatabaseConfiguration(null, user, password, 3306, host, database, false, databaseType);
return new DatabaseConfiguration("", user, password, 3306, host, database, false, databaseType);
}

public static DatabaseConfiguration create(String user, String password, int port, String host, String database, boolean debug, DatabaseType databaseType) {
return new DatabaseConfiguration(null, user, password, port, host, database, debug, databaseType);
return new DatabaseConfiguration("", user, password, port, host, database, debug, databaseType);
}

public static DatabaseConfiguration createMariaDb(String user, String password, String host, String database) {
return new DatabaseConfiguration(null, user, password, 3306, host, database, false, DatabaseType.MARIADB);
return new DatabaseConfiguration("", user, password, 3306, host, database, false, DatabaseType.MARIADB);
}

public static DatabaseConfiguration sqlite(boolean debug) {
return new DatabaseConfiguration(null, null, null, 0, null, null, debug, DatabaseType.SQLITE);
return new DatabaseConfiguration("", null, null, 0, null, null, debug, DatabaseType.SQLITE);
}

public String replacePrefix(String tableName) {
Expand Down
Loading