From 49538af0ad705408799de0c9fd2a776315524d3c Mon Sep 17 00:00:00 2001 From: bluepython508 <16466646+bluepython508@users.noreply.github.com> Date: Sat, 9 Nov 2024 17:34:21 +0000 Subject: [PATCH] Allow reconfiguring guild --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index d8a6cad..b92cc75 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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(),