more presence table with indexes that don't fix in 1000 bytes (utf8 issue)

2.6
Andrew Pogrebennyk 14 years ago
parent 2faa68ea69
commit 06fd48f1c9

@ -48,7 +48,7 @@ CREATE TABLE active_watchers (
updated INT(11) NOT NULL,
updated_winfo INT(11) NOT NULL,
CONSTRAINT active_watchers_idx UNIQUE (callid, to_tag, from_tag)
);
) default charset=latin1; # FIXME
CREATE INDEX active_watchers_expires ON active_watchers (expires);
CREATE INDEX active_watchers_pres ON active_watchers (presentity_uri);
@ -134,7 +134,7 @@ CREATE TABLE rls_presentity (
auth_state INT(11) NOT NULL,
reason VARCHAR(64) NOT NULL,
CONSTRAINT rls_presentity_idx UNIQUE (rlsubs_did, resource_uri)
);
) default charset=latin1; # FIXME
CREATE INDEX rlsubs_idx ON rls_presentity (rlsubs_did);
CREATE INDEX updated_idx ON rls_presentity (updated);
@ -168,7 +168,7 @@ CREATE TABLE rls_watchers (
from_domain VARCHAR(64) NOT NULL,
updated INT(11) NOT NULL,
CONSTRAINT rls_watcher_idx UNIQUE (callid, to_tag, from_tag)
);
) default charset=latin1; # FIXME
CREATE INDEX rls_watchers_delete ON rls_watchers (callid, to_tag);
CREATE INDEX rls_watchers_update ON rls_watchers (watcher_username, watcher_domain, event);

Loading…
Cancel
Save