diff --git a/client/src/storage/standard.rs b/client/src/storage/standard.rs index 483f743..308e972 100644 --- a/client/src/storage/standard.rs +++ b/client/src/storage/standard.rs @@ -53,7 +53,7 @@ impl Storage for StandardStorage { return Err(StorageError::IdCollision(id.to_string())); } - sqlx::query(r#"INSERT INTO Entries VALUES (?, ?);"#) + sqlx::query(r#"INSERT OR REPLACE INTO Entries VALUES (?, ?);"#) .bind(id) .bind(&data) .execute(&self.pool)