Fully remove DQS from SQL queries

This commit is contained in:
Fedor Indutny 2023-01-18 17:06:07 -08:00 committed by GitHub
parent ebfd7a57dd
commit 6ddb12cd99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 17 additions and 17 deletions

View file

@ -138,7 +138,7 @@ export default function updateToSchemaVersion41(
db.exec(
`
DELETE FROM items WHERE id = "identityKey" OR id = "registrationId";
DELETE FROM items WHERE id = 'identityKey' OR id = 'registrationId';
`
);
};

View file

@ -324,7 +324,7 @@ function updateToSchemaVersion7(
number
) WHERE number IS NOT NULL;
INSERT INTO sessions(id, number, json)
SELECT "+" || id, number, json FROM sessions_old;
SELECT '+' || id, number, json FROM sessions_old;
DROP TABLE sessions_old;
`);
@ -899,7 +899,7 @@ function updateToSchemaVersion20(
// Drop triggers
const triggers = db
.prepare<EmptyQuery>(
'SELECT * FROM sqlite_master WHERE type = "trigger" AND tbl_name = "messages"'
"SELECT * FROM sqlite_master WHERE type = 'trigger' AND tbl_name = 'messages'"
)
.all();