|
@@ -40,11 +40,13 @@ CREATE TABLE active_watchers (
|
|
local_contact VARCHAR(128) NOT NULL,
|
|
local_contact VARCHAR(128) NOT NULL,
|
|
from_user VARCHAR(64) NOT NULL,
|
|
from_user VARCHAR(64) NOT NULL,
|
|
from_domain VARCHAR(64) NOT NULL,
|
|
from_domain VARCHAR(64) NOT NULL,
|
|
|
|
+ updated INTEGER NOT NULL,
|
|
CONSTRAINT active_watchers_active_watchers_idx UNIQUE (callid, to_tag, from_tag)
|
|
CONSTRAINT active_watchers_active_watchers_idx UNIQUE (callid, to_tag, from_tag)
|
|
);
|
|
);
|
|
|
|
|
|
CREATE INDEX active_watchers_active_watchers_expires ON active_watchers (expires);
|
|
CREATE INDEX active_watchers_active_watchers_expires ON active_watchers (expires);
|
|
CREATE INDEX active_watchers_active_watchers_pres ON active_watchers (presentity_uri);
|
|
CREATE INDEX active_watchers_active_watchers_pres ON active_watchers (presentity_uri);
|
|
|
|
+CREATE INDEX active_watchers_updated_idx ON active_watchers (updated);
|
|
|
|
|
|
INSERT INTO version (table_name, table_version) values ('watchers','3');
|
|
INSERT INTO version (table_name, table_version) values ('watchers','3');
|
|
CREATE TABLE watchers (
|
|
CREATE TABLE watchers (
|