Browse code

- support for flags in usrloc and registrar

Jan Janak authored on 19/09/2003 08:27:46
Showing 1 changed files
... ...
@@ -289,9 +289,7 @@ CREATE TABLE aliases (
289 289
   last_modified timestamp(14) NOT NULL,
290 290
   replicate int(10) unsigned default NULL,
291 291
   state tinyint(1) unsigned default NULL,
292
-  flags set("NAT", "INVITE", "!INVITE", 
293
-                   "MESSAGE", "!MESSAGE", 
294
-		   "SUBSCRIBE", "!SUBSCRIBE") NOT NULL default '',
292
+  flags int(11) NOT NULL default '0',
295 293
   PRIMARY KEY($USERCOL, domain, contact)
296 294
 ) $TABLE_TYPE;
297 295
 
... ...
@@ -334,21 +332,6 @@ CREATE TABLE grp (
334 332
 #
335 333
 # Table structure for table 'location' -- that is persistent UsrLoc
336 334
 #
337
-
338
-# Description of flags column
339
-# - "NAT" means that the contact is behind a NAT
340
-# - "INVITE" means that the contact accepts INVITE 
341
-#   and related messages ("BYE, ACK, CANCEL...")
342
-# - "!INVITE" means that the contact does NOT accept
343
-#   INVITE and related messages
344
-# - "MESSAGE" means that the contact accepts MESSAGE
345
-# - "!MESSAGE" means that the contact does NOT accept
346
-#   MESSAGE
347
-# - "SUBSCRIBE" means that the contact accepts SUBSCRIBE
348
-#   and NOTIFY
349
-# - "!SUBSCRIBE" means that the contact does NOT accept
350
-#   SUBSCRIBE and NOTIFY
351
-
352 335
 CREATE TABLE location (
353 336
   $USERCOL varchar(64) NOT NULL default '',
354 337
   domain varchar(128) NOT NULL default '',
... ...
@@ -360,9 +343,7 @@ CREATE TABLE location (
360 343
   last_modified timestamp(14) NOT NULL,
361 344
   replicate int(10) unsigned default NULL,
362 345
   state tinyint(1) unsigned default NULL,
363
-  flags set("NAT", "INVITE", "!INVITE",
364
-            "MESSAGE", "!MESSAGE",
365
-            "SUBSCRIBE", "!SUBSCRIBE") NOT NULL default '',				 
346
+  flags int(11) NOT NULL default '0',
366 347
   PRIMARY KEY($USERCOL, domain, contact)
367 348
 ) $TABLE_TYPE;
368 349