Browse code

- updated usr_preferences and speed_dial tables to reflect default column names in modules

Daniel-Constantin Mierla authored on 15/03/2005 10:25:39
Showing 1 changed files
... ...
@@ -253,11 +253,11 @@ INSERT INTO version VALUES ( 'uri', '1');
253 253
 INSERT INTO version VALUES ( 'server_monitoring', '1');
254 254
 INSERT INTO version VALUES ( 'server_monitoring_agg', '1');
255 255
 INSERT INTO version VALUES ( 'trusted', '1');
256
-INSERT INTO version VALUES ( 'usr_preferences', '1');
256
+INSERT INTO version VALUES ( 'usr_preferences', '2');
257 257
 INSERT INTO version VALUES ( 'usr_preferences_types', '1');
258 258
 INSERT INTO version VALUES ( 'admin_privileges', '1');
259 259
 INSERT INTO version VALUES ( 'calls_forwarding', '1');
260
-INSERT INTO version VALUES ( 'speed_dial', '1');
260
+INSERT INTO version VALUES ( 'speed_dial', '2');
261 261
 INSERT INTO version VALUES ( 'gw', '1');
262 262
 INSERT INTO version VALUES ( 'gw_grp', '1');
263 263
 INSERT INTO version VALUES ( 'lcr', '1');
... ...
@@ -594,6 +594,7 @@ CREATE TABLE usr_preferences (
594 594
   domain varchar(128) NOT NULL default '',
595 595
   attribute varchar(32) NOT NULL default '',
596 596
   value varchar(128) NOT NULL default '',
597
+  type integer NOT NULL default '0',
597 598
   modified timestamp(14) NOT NULL,
598 599
   PRIMARY KEY  (attribute,$USERCOL,domain)
599 600
 ) $TABLE_TYPE;
... ...
@@ -678,10 +679,11 @@ CREATE TABLE calls_forwarding (
678 679
 CREATE TABLE speed_dial (
679 680
   $USERCOL varchar(64) NOT NULL default '',
680 681
   domain varchar(128) NOT NULL default '',
681
-  username_from_req_uri varchar(128) NOT NULL default '',
682
-  domain_from_req_uri varchar(128) NOT NULL default '',
683
-  new_request_uri varchar(128) NOT NULL default '',
684
-  PRIMARY KEY  ($USERCOL,domain,domain_from_req_uri,username_from_req_uri)
682
+  sd_username varchar(64) NOT NULL default '',
683
+  sd_domain varchar(128) NOT NULL default '',
684
+  new_uri varchar(192) NOT NULL default '',
685
+  description varchar(64) NOT NULL default '',
686
+  PRIMARY KEY  ($USERCOL,domain,sd_username,sd_domain)
685 687
 ) $TABLE_TYPE;
686 688
 
687 689
 #