Browse code

Changes needed by new multidomain support in serweb

Karel Kozlik authored on 05/09/2005 10:20:35
Showing 1 changed files
... ...
@@ -21,6 +21,7 @@
21 21
 # 2003-04-14  reinstall introduced (jiri)
22 22
 # 2004-07-05  new definition of table silo (dcm)
23 23
 # 2004-07-23  added uri_scheme and transport cols to table gw (jih)
24
+# 2005-09-05  new tables dom_preferences, customer and new columns in table domain
24 25
 
25 26
 
26 27
 #################################################################
... ...
@@ -249,7 +250,7 @@ INSERT INTO version VALUES ( 'acc', '2');
249 250
 INSERT INTO version VALUES ( 'config', '1');
250 251
 INSERT INTO version VALUES ( 'silo', '3');
251 252
 INSERT INTO version VALUES ( 'realm', '1');
252
-INSERT INTO version VALUES ( 'domain', '1');
253
+INSERT INTO version VALUES ( 'domain', '2');
253 254
 INSERT INTO version VALUES ( 'uri', '1');
254 255
 INSERT INTO version VALUES ( 'server_monitoring', '1');
255 256
 INSERT INTO version VALUES ( 'server_monitoring_agg', '1');
... ...
@@ -262,6 +263,8 @@ INSERT INTO version VALUES ( 'speed_dial', '2');
262 263
 INSERT INTO version VALUES ( 'gw', '3');
263 264
 INSERT INTO version VALUES ( 'gw_grp', '1');
264 265
 INSERT INTO version VALUES ( 'lcr', '1');
266
+INSERT INTO version VALUES ( 'customer', '1');
267
+INSERT INTO version VALUES ( 'dom_preferences', '1');
265 268
 
266 269
 #
267 270
 # Table structure for table 'acc' -- accounted calls
... ...
@@ -553,9 +556,23 @@ CREATE TABLE silo(
553 556
 #
554 557
 
555 558
 CREATE TABLE domain (
559
+  d_id int NOT NULL,
556 560
   domain varchar(128) NOT NULL default '',
561
+  f_disabled TINYINT(1) default 0,
557 562
   last_modified datetime NOT NULL default '0000-00-00 00:00:00',
558
-  PRIMARY KEY  (domain)
563
+  UNIQUE KEY domain (domain),
564
+  PRIMARY KEY  (d_id, domain)
565
+) $TABLE_TYPE;
566
+
567
+#
568
+# Table structure for table 'customer'
569
+#
570
+
571
+CREATE TABLE customer (
572
+  c_id int NOT NULL AUTO_INCREMENT,
573
+  name varchar(128) NOT NULL,
574
+  last_modified datetime NOT NULL default '0000-00-00 00:00:00',
575
+  PRIMARY KEY  (c_id)
559 576
 ) $TABLE_TYPE;
560 577
 
561 578
 
... ...
@@ -616,6 +633,19 @@ CREATE TABLE usr_preferences_types (
616 633
   PRIMARY KEY  (att_name)
617 634
 ) $TABLE_TYPE;
618 635
 
636
+
637
+#
638
+# Table structure for table 'dom_preferences'
639
+#
640
+
641
+DROP TABLE IF EXISTS dom_preferences;
642
+CREATE TABLE dom_preferences (
643
+  d_id int NOT NULL,
644
+  att_name varchar(32) NOT NULL,
645
+  att_value varchar(255),
646
+  PRIMARY KEY  (d_id)
647
+) $TABLE_TYPE;
648
+
619 649
 #
620 650
 # Table structure for table trusted
621 651
 CREATE TABLE trusted (