Skip to content

Commit

Permalink
Show city project by default when created
Browse files Browse the repository at this point in the history
  • Loading branch information
LordTuxn committed Sep 20, 2021
1 parent 07c9055 commit 6efb34b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,12 @@ public static List<CityProject> getCityProjects(boolean onlyVisible) {
}

public static void addCityProject(Country country, String name) throws SQLException {
DatabaseConnection.createStatement("INSERT INTO plotsystem_city_projects (id, name, country_id, description) VALUES (?, ?, ?, ?)")
DatabaseConnection.createStatement("INSERT INTO plotsystem_city_projects (id, name, country_id, description, visible) VALUES (?, ?, ?, ?, ?)")
.setValue(DatabaseConnection.getTableID("plotsystem_city_projects"))
.setValue(name)
.setValue(country.getID())
.setValue("").executeUpdate();
.setValue("")
.setValue(true).executeUpdate();
}

public static void removeCityProject(int id) throws SQLException {
Expand Down

0 comments on commit 6efb34b

Please sign in to comment.