From bfbe788d8a4e695c7dca4cb35db83e90be3ca4c4 Mon Sep 17 00:00:00 2001 From: Lennart <18233294+lennart-k@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:49:55 +0100 Subject: [PATCH] sql: Make linter happy --- crates/store_sqlite/migrations/1_calendar.sql | 2 +- crates/store_sqlite/migrations/2_addressbook.sql | 2 +- crates/store_sqlite/src/addressbook_store.rs | 2 +- crates/store_sqlite/src/calendar_store.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/store_sqlite/migrations/1_calendar.sql b/crates/store_sqlite/migrations/1_calendar.sql index 8900014..c3ddfe7 100644 --- a/crates/store_sqlite/migrations/1_calendar.sql +++ b/crates/store_sqlite/migrations/1_calendar.sql @@ -29,7 +29,7 @@ CREATE TABLE calendarobjectchangelog ( principal TEXT NOT NULL, cal_id TEXT NOT NULL, object_id TEXT NOT NULL, - operation INTEGER NOT NULL, + "operation" INTEGER NOT NULL, synctoken INTEGER DEFAULT 0 NOT NULL, created_at DATETIME DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (principal, cal_id, created_at), diff --git a/crates/store_sqlite/migrations/2_addressbook.sql b/crates/store_sqlite/migrations/2_addressbook.sql index 1084642..44d2a19 100644 --- a/crates/store_sqlite/migrations/2_addressbook.sql +++ b/crates/store_sqlite/migrations/2_addressbook.sql @@ -24,7 +24,7 @@ CREATE TABLE addressobjectchangelog ( principal TEXT NOT NULL, addressbook_id TEXT NOT NULL, object_id TEXT NOT NULL, - operation INTEGER NOT NULL, + "operation" INTEGER NOT NULL, synctoken INTEGER DEFAULT 0 NOT NULL, created_at DATETIME DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (principal, addressbook_id, created_at), diff --git a/crates/store_sqlite/src/addressbook_store.rs b/crates/store_sqlite/src/addressbook_store.rs index 8d6bd0e..13d58ad 100644 --- a/crates/store_sqlite/src/addressbook_store.rs +++ b/crates/store_sqlite/src/addressbook_store.rs @@ -39,7 +39,7 @@ async fn log_object_operation( sqlx::query!( r#" - INSERT INTO addressobjectchangelog (principal, addressbook_id, object_id, operation, synctoken) + INSERT INTO addressobjectchangelog (principal, addressbook_id, object_id, "operation", synctoken) VALUES (?1, ?2, ?3, ?4, ( SELECT synctoken FROM addressbooks WHERE (principal, id) = (?1, ?2) ))"#, diff --git a/crates/store_sqlite/src/calendar_store.rs b/crates/store_sqlite/src/calendar_store.rs index 9d51d3a..5d54678 100644 --- a/crates/store_sqlite/src/calendar_store.rs +++ b/crates/store_sqlite/src/calendar_store.rs @@ -41,7 +41,7 @@ async fn log_object_operation( sqlx::query!( r#" - INSERT INTO calendarobjectchangelog (principal, cal_id, object_id, operation, synctoken) + INSERT INTO calendarobjectchangelog (principal, cal_id, object_id, "operation", synctoken) VALUES (?1, ?2, ?3, ?4, ( SELECT synctoken FROM calendars WHERE (principal, id) = (?1, ?2) ))"#,