Browse code

Registrar replication patch - by Nils

Jan Janak authored on 13/03/2003 16:31:06
Showing 2 changed files
... ...
@@ -337,7 +337,7 @@ usrloc() {
337 337
 				exit 1
338 338
 			fi
339 339
 
340
-			fifo_cmd ul_add "$TABLE" "$1" "$2" "$FOREVER_REL" "1.00"
340
+			fifo_cmd ul_add "$TABLE" "$1" "$2" "$FOREVER_REL" "1.00" "0"
341 341
 			exit $?
342 342
 			;;
343 343
 		rm)
... ...
@@ -11,6 +11,7 @@
11 11
 # 2003-01-21 changed SILO table definition, by dcm
12 12
 #
13 13
 # History:
14
+# 2003-03-12 added replication mark and state columns to location (nils)
14 15
 # 2003-03-05: Changed user to username, user is reserved word (janakj)
15 16
 # 2003-01-26 statistics table introduced (jiri)
16 17
 # 2003-01-25: Optimized keys of some core tables (janakj)
... ...
@@ -126,7 +127,7 @@ INSERT INTO version VALUES ( 'reserved', '1');
126 127
 INSERT INTO version VALUES ( 'phonebook', '1');
127 128
 INSERT INTO version VALUES ( 'pending', '2');
128 129
 INSERT INTO version VALUES ( 'missed_calls', '1');
129
-INSERT INTO version VALUES ( 'location', '2');
130
+INSERT INTO version VALUES ( 'location', '3');
130 131
 INSERT INTO version VALUES ( 'grp', '2');
131 132
 INSERT INTO version VALUES ( 'event', '1');
132 133
 INSERT INTO version VALUES ( 'aliases', '2');
... ...
@@ -247,6 +248,8 @@ CREATE TABLE location (
247 248
   callid varchar(255) default NULL,
248 249
   cseq int(11) default NULL,
249 250
   last_modified timestamp(14) NOT NULL,
251
+  replicate int(10) unsigned default NULL,
252
+  state tinyint(1) unsigned default NULL,
250 253
   PRIMARY KEY(username, domain, contact)
251 254
 ) $TABLE_TYPE;
252 255