Browse code

- added indexes by uuid to tables usr_preferences and speed_dial - added column uuid to table speed_dial

Karel Kozlik authored on 09/05/2005 12:13:02
Showing 1 changed files
... ...
@@ -596,7 +596,8 @@ CREATE TABLE usr_preferences (
596 596
   value varchar(128) NOT NULL default '',
597 597
   type integer NOT NULL default '0',
598 598
   modified timestamp(14) NOT NULL,
599
-  PRIMARY KEY  (attribute,$USERCOL,domain)
599
+  PRIMARY KEY  (attribute,$USERCOL,domain),
600
+  INDEX (uuid)
600 601
 ) $TABLE_TYPE;
601 602
 
602 603
 
... ...
@@ -677,6 +678,7 @@ CREATE TABLE calls_forwarding (
677 678
 #
678 679
 
679 680
 CREATE TABLE speed_dial (
681
+  uuid varchar(64) NOT NULL default '',
680 682
   $USERCOL varchar(64) NOT NULL default '',
681 683
   domain varchar(128) NOT NULL default '',
682 684
   sd_username varchar(64) NOT NULL default '',
... ...
@@ -685,7 +687,8 @@ CREATE TABLE speed_dial (
685 687
   fname varchar(128) NOT NULL default '',
686 688
   lname varchar(128) NOT NULL default '',
687 689
   description varchar(64) NOT NULL default '',
688
-  PRIMARY KEY  ($USERCOL,domain,sd_username,sd_domain)
690
+  PRIMARY KEY  ($USERCOL,domain,sd_username,sd_domain),
691
+  INDEX (uuid)
689 692
 ) $TABLE_TYPE;
690 693
 
691 694
 #