From: Alan Date: Wed, 11 Oct 2023 03:49:33 +0000 (+0800) Subject: add server id X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=ba531ece3c9c4f615daa2ade6e19d29c0f596c19 add server id --- diff --git a/sql/core_notify.sql b/sql/core_notify.sql index 6f79c564..235b3aa3 100644 --- a/sql/core_notify.sql +++ b/sql/core_notify.sql @@ -28,6 +28,8 @@ ALTER TABLE core_notify ADD COLUMN person_table VARCHAR(256) NOT NULL DEFAULT '' -- ?? why added??? - probably need to document this.. ALTER TABLE core_notify ADD COLUMN domain_id INT(11) NOT NULL DEFAULT 0; +ALTER TABLE core_notify ADD COLUMN server_id INT(11) NOT NULL DEFAULT -1 + ALTER TABLE core_notify ADD INDEX lookup(act_when, msgid); @@ -41,6 +43,8 @@ ALTER TABLE core_notify add index lookup_d (person_id, msgid, ontable); ALTER TABLE core_notify ADD INDEX lookup_e (onid, ontable, person_id, act_when); ALTER TABLE core_notify ADD INDEX lookup_f (to_email); alter table core_notify add index lookup_g(sent, act_start, act_when); +alter table core_notify add INDEX lookup_h (sent, event_id, server_id, msgid, ontable); + ALTER TABLE core_notify ADD INDEX lookup_person_id (person_id); ALTER TABLE core_notify ADD INDEX lookup_trigger_person_id (trigger_person_id);