Skip to content

Commit

Permalink
sql: Make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
lennart-k committed Jan 5, 2025
1 parent d61a3c8 commit bfbe788
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/store_sqlite/migrations/1_calendar.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion crates/store_sqlite/migrations/2_addressbook.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion crates/store_sqlite/src/addressbook_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
))"#,
Expand Down
2 changes: 1 addition & 1 deletion crates/store_sqlite/src/calendar_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
))"#,
Expand Down

0 comments on commit bfbe788

Please sign in to comment.