|
@@ -1,4 +1,3 @@
|
|
|
-INSERT INTO version (table_name, table_version) values ('presentity','4');
|
|
|
CREATE TABLE `presentity` (
|
|
|
`id` INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
|
|
|
`username` VARCHAR(64) NOT NULL,
|
|
@@ -16,7 +15,8 @@ CREATE TABLE `presentity` (
|
|
|
CREATE INDEX presentity_expires ON presentity (`expires`);
|
|
|
CREATE INDEX account_idx ON presentity (`username`, `domain`, `event`);
|
|
|
|
|
|
-INSERT INTO version (table_name, table_version) values ('active_watchers','11');
|
|
|
+INSERT INTO version (table_name, table_version) values ('presentity','4');
|
|
|
+
|
|
|
CREATE TABLE `active_watchers` (
|
|
|
`id` INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
|
|
|
`presentity_uri` VARCHAR(128) NOT NULL,
|
|
@@ -51,7 +51,8 @@ CREATE INDEX active_watchers_pres ON active_watchers (`presentity_uri`, `event`)
|
|
|
CREATE INDEX updated_idx ON active_watchers (`updated`);
|
|
|
CREATE INDEX updated_winfo_idx ON active_watchers (`updated_winfo`, `presentity_uri`);
|
|
|
|
|
|
-INSERT INTO version (table_name, table_version) values ('watchers','3');
|
|
|
+INSERT INTO version (table_name, table_version) values ('active_watchers','11');
|
|
|
+
|
|
|
CREATE TABLE `watchers` (
|
|
|
`id` INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
|
|
|
`presentity_uri` VARCHAR(128) NOT NULL,
|
|
@@ -64,7 +65,8 @@ CREATE TABLE `watchers` (
|
|
|
CONSTRAINT watcher_idx UNIQUE (`presentity_uri`, `watcher_username`, `watcher_domain`, `event`)
|
|
|
);
|
|
|
|
|
|
-INSERT INTO version (table_name, table_version) values ('xcap','4');
|
|
|
+INSERT INTO version (table_name, table_version) values ('watchers','3');
|
|
|
+
|
|
|
CREATE TABLE `xcap` (
|
|
|
`id` INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
|
|
|
`username` VARCHAR(64) NOT NULL,
|
|
@@ -82,7 +84,8 @@ CREATE INDEX account_doc_type_idx ON xcap (`username`, `domain`, `doc_type`);
|
|
|
CREATE INDEX account_doc_type_uri_idx ON xcap (`username`, `domain`, `doc_type`, `doc_uri`);
|
|
|
CREATE INDEX account_doc_uri_idx ON xcap (`username`, `domain`, `doc_uri`);
|
|
|
|
|
|
-INSERT INTO version (table_name, table_version) values ('pua','7');
|
|
|
+INSERT INTO version (table_name, table_version) values ('xcap','4');
|
|
|
+
|
|
|
CREATE TABLE `pua` (
|
|
|
`id` INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
|
|
|
`pres_uri` VARCHAR(128) NOT NULL,
|
|
@@ -111,3 +114,5 @@ CREATE INDEX dialog1_idx ON pua (`pres_id`, `pres_uri`);
|
|
|
CREATE INDEX dialog2_idx ON pua (`call_id`, `from_tag`);
|
|
|
CREATE INDEX record_idx ON pua (`pres_id`);
|
|
|
|
|
|
+INSERT INTO version (table_name, table_version) values ('pua','7');
|
|
|
+
|