Fix index

This commit is contained in:
Neil Alexander 2020-06-30 13:34:29 +01:00
parent 0ac6c802fb
commit 4f206eb478
2 changed files with 4 additions and 4 deletions

View file

@ -34,8 +34,8 @@ CREATE TABLE IF NOT EXISTS federationsender_queue_pdus (
json_nid BIGINT NOT NULL json_nid BIGINT NOT NULL
); );
CREATE UNIQUE INDEX IF NOT EXISTS federationsender_queue_pdus_pdus_event_id_idx CREATE UNIQUE INDEX IF NOT EXISTS federationsender_queue_pdus_pdus_json_nid_idx
ON federationsender_queue_pdus (event_id, server_name); ON federationsender_queue_pdus (json_nid, server_name);
` `
const insertQueuePDUSQL = "" + const insertQueuePDUSQL = "" +

View file

@ -34,8 +34,8 @@ CREATE TABLE IF NOT EXISTS federationsender_queue_pdus (
json_nid BIGINT NOT NULL json_nid BIGINT NOT NULL
); );
CREATE UNIQUE INDEX IF NOT EXISTS federationsender_queue_pdus_pdus_event_id_idx CREATE UNIQUE INDEX IF NOT EXISTS federationsender_queue_pdus_pdus_json_nid_idx
ON federationsender_queue_pdus (event_id, server_name); ON federationsender_queue_pdus (json_nid, server_name);
` `
const insertQueuePDUSQL = "" + const insertQueuePDUSQL = "" +