sql: Make linter happy

This commit is contained in:
Lennart
2025-01-05 17:49:55 +01:00
parent d61a3c8c58
commit bfbe788d8a
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

@@ -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)
))"#,

View File

@@ -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)
))"#,