Browse code

kamctl: regenerated db schema files

- regenerated db schema files for table watchers
after addition of index time_status_idx

Alessio Garzi authored on 14/07/2022 07:54:24 • Henning Westerholt committed on 21/07/2022 14:07:39
Showing 4 changed files
... ...
@@ -69,6 +69,8 @@ CREATE TABLE watchers (
69 69
     CONSTRAINT watchers_watcher_idx UNIQUE (presentity_uri, watcher_username, watcher_domain, event)
70 70
 );
71 71
 
72
+CREATE INDEX watchers_time_status_idx ON watchers (inserted_time, status);
73
+
72 74
 INSERT INTO version (table_name, table_version) values ('watchers','3');
73 75
 
74 76
 CREATE TABLE xcap (
... ...
@@ -69,6 +69,8 @@ CREATE TABLE `watchers` (
69 69
     CONSTRAINT watcher_idx UNIQUE (`presentity_uri`, `watcher_username`, `watcher_domain`, `event`)
70 70
 );
71 71
 
72
+CREATE INDEX time_status_idx ON watchers (`inserted_time`, `status`);
73
+
72 74
 INSERT INTO version (table_name, table_version) values ('watchers','3');
73 75
 
74 76
 CREATE TABLE `xcap` (
... ...
@@ -93,6 +93,8 @@ END watchers_tr;
93 93
 /
94 94
 BEGIN map2users('watchers'); END;
95 95
 /
96
+CREATE INDEX watchers_time_status_idx  ON watchers (inserted_time, status);
97
+
96 98
 INSERT INTO version (table_name, table_version) values ('watchers','3');
97 99
 
98 100
 CREATE TABLE xcap (
... ...
@@ -69,6 +69,8 @@ CREATE TABLE watchers (
69 69
     CONSTRAINT watchers_watcher_idx UNIQUE (presentity_uri, watcher_username, watcher_domain, event)
70 70
 );
71 71
 
72
+CREATE INDEX watchers_time_status_idx ON watchers (inserted_time, status);
73
+
72 74
 INSERT INTO version (table_name, table_version) values ('watchers','3');
73 75
 
74 76
 CREATE TABLE xcap (