|
@@ -20,6 +20,8 @@ END presentity_tr;
|
|
|
/
|
|
|
BEGIN map2users('presentity'); END;
|
|
|
/
|
|
|
+CREATE INDEX presentity_presentity_expires ON presentity (expires);
|
|
|
+
|
|
|
INSERT INTO version (table_name, table_version) values ('active_watchers','9');
|
|
|
CREATE TABLE active_watchers (
|
|
|
id NUMBER(10) PRIMARY KEY,
|
|
@@ -43,7 +45,7 @@ CREATE TABLE active_watchers (
|
|
|
version NUMBER(10) DEFAULT 0 NOT NULL,
|
|
|
socket_info VARCHAR2(64),
|
|
|
local_contact VARCHAR2(128),
|
|
|
- CONSTRAINT ORA_active_watchers_idx UNIQUE (presentity_uri, callid, to_tag, from_tag)
|
|
|
+ CONSTRAINT ORA_active_watchers_idx UNIQUE (callid, to_tag, from_tag)
|
|
|
);
|
|
|
|
|
|
CREATE OR REPLACE TRIGGER active_watchers_tr
|
|
@@ -54,6 +56,8 @@ END active_watchers_tr;
|
|
|
/
|
|
|
BEGIN map2users('active_watchers'); END;
|
|
|
/
|
|
|
+CREATE INDEX ORA_active_watchers_expires ON active_watchers (expires);
|
|
|
+
|
|
|
INSERT INTO version (table_name, table_version) values ('watchers','3');
|
|
|
CREATE TABLE watchers (
|
|
|
id NUMBER(10) PRIMARY KEY,
|