Create index for sqlite3 as well

This commit is contained in:
Piotr Kozimor 2022-08-30 15:28:11 +02:00
parent 18898c5479
commit fb7399281a

View file

@ -39,6 +39,8 @@ CREATE TABLE IF NOT EXISTS syncapi_send_to_device (
-- The event content JSON. -- The event content JSON.
content TEXT NOT NULL content TEXT NOT NULL
); );
CREATE INDEX IF NOT EXISTS syncapi_send_to_device_user_id_device_id_idx ON syncapi_send_to_device(user_id, device_id);
` `
const insertSendToDeviceMessageSQL = ` const insertSendToDeviceMessageSQL = `