Allow reconfiguring guild
This commit is contained in:
@@ -51,7 +51,7 @@ impl Data {
|
||||
self.0
|
||||
.lock()
|
||||
.await
|
||||
.prepare_cached("INSERT INTO guilds (guild, town_square, cottages) VALUES (?, ?, ?)")?
|
||||
.prepare_cached("INSERT INTO guilds (guild, town_square, cottages) VALUES (?, ?, ?) ON CONFLICT(guild) DO UPDATE SET town_square = excluded.town_square, cottages = excluded.cottages")?
|
||||
.execute(rusqlite::params![
|
||||
guild.to_string(),
|
||||
town_square.to_string(),
|
||||
|
||||
Reference in New Issue
Block a user