Browse code

aliases, location, grp version 2, all include domain column now.

Jan Janak authored on 10/12/2002 19:20:40
Showing 1 changed files
... ...
@@ -117,10 +117,10 @@ INSERT INTO version VALUES ( 'reserved', '1');
117 117
 INSERT INTO version VALUES ( 'phonebook', '1');
118 118
 INSERT INTO version VALUES ( 'pending', '1');
119 119
 INSERT INTO version VALUES ( 'missed_calls', '1');
120
-INSERT INTO version VALUES ( 'location', '1');
121
-INSERT INTO version VALUES ( 'grp', '1');
120
+INSERT INTO version VALUES ( 'location', '2');
121
+INSERT INTO version VALUES ( 'grp', '2');
122 122
 INSERT INTO version VALUES ( 'event', '1');
123
-INSERT INTO version VALUES ( 'aliases', '1');
123
+INSERT INTO version VALUES ( 'aliases', '2');
124 124
 INSERT INTO version VALUES ( 'active_sessions', '1');
125 125
 INSERT INTO version VALUES ( 'acc', '1');
126 126
 INSERT INTO version VALUES ( 'config', '1');
... ...
@@ -174,13 +174,14 @@ CREATE TABLE active_sessions (
174 174
 
175 175
 CREATE TABLE aliases (
176 176
   user varchar(50) NOT NULL default '',
177
+  domain varchar(100) NOT NULL default '',
177 178
   contact varchar(255) NOT NULL default '',
178 179
   expires datetime default NULL,
179 180
   q float(10,2) default NULL,
180 181
   callid varchar(255) default NULL,
181 182
   cseq int(11) default NULL,
182 183
   last_modified timestamp(14) NOT NULL,
183
-  KEY user (user, contact)
184
+  KEY user (user, domain, contact)
184 185
 ) $TABLE_TYPE;
185 186
 
186 187
 
... ...
@@ -212,6 +213,7 @@ CREATE TABLE event (
212 213
 
213 214
 CREATE TABLE grp (
214 215
   user varchar(50) NOT NULL default '',
216
+  domain varchar(100) NOT NULL default '',
215 217
   grp varchar(50) NOT NULL default '',
216 218
   last_modified datetime NOT NULL default '0000-00-00 00:00:00'
217 219
 ) $TABLE_TYPE;
... ...
@@ -226,13 +228,14 @@ CREATE TABLE grp (
226 228
 
227 229
 CREATE TABLE location (
228 230
   user varchar(50) NOT NULL default '',
231
+  domain varchar(100) NOT NULL default '',
229 232
   contact varchar(255) NOT NULL default '',
230 233
   expires datetime default NULL,
231 234
   q float(10,2) default NULL,
232 235
   callid varchar(255) default NULL,
233 236
   cseq int(11) default NULL,
234 237
   last_modified timestamp(14) NOT NULL,
235
-  KEY user (user, contact)
238
+  KEY user (user, domain, contact)
236 239
 ) $TABLE_TYPE;
237 240
 
238 241