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(),