projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PHP7 fix
[Pman.Core]
/
sql
/
core_notify.sql
diff --git
a/sql/core_notify.sql
b/sql/core_notify.sql
index
684de9e
..
6f79c56
100644
(file)
--- a/
sql/core_notify.sql
+++ b/
sql/core_notify.sql
@@
-24,12
+24,24
@@
ALTER TABLE core_notify ADD COLUMN to_email varchar(255) NOT NULL DEFAULT '';
-- old mysql..
ALTER TABLE core_notify CHANGE COLUMN bounced event_id INT(11) NOT NULL DEFAULT 0;
-- old mysql..
ALTER TABLE core_notify CHANGE COLUMN bounced event_id INT(11) NOT NULL DEFAULT 0;
+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 INDEX lookup(act_when, msgid);
ALTER TABLE core_notify ADD INDEX lookup(act_when, msgid);
-ALTER TABLE core_notify ADD INDEX lookup_a(onid, ontable, person_id, act_when, msgid, to_email);
+
+-- ALTER TABLE core_notify ADD INDEX lookup_a(onid, ontable, person_id, act_when, msgid, to_email); (too long?!)
+
+ALTER TABLE core_notify DROP INDEX lookup_a;
+
+-- exceed 1000 characters if larger than this..
alter table core_notify add INDEX lookup_b (sent, person_id, msgid, ontable);
ALTER TABLE core_notify add index lookup_d (person_id, msgid, ontable);
alter table core_notify add INDEX lookup_b (sent, person_id, msgid, ontable);
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_person_id (person_id);
+ALTER TABLE core_notify ADD INDEX lookup_trigger_person_id (trigger_person_id);
-
--- used by email / tracker to handle alises - we have to be carefull adding to this table...