Browse Source

dbschema: regenerated db creation scripts

- updates to lcr tables and rls_watchers
Daniel-Constantin Mierla 14 years ago
parent
commit
7ed91f0632

+ 2 - 2
utils/kamctl/db_berkeley/kamailio/version

@@ -16,10 +16,10 @@ address|
 address|4
 aliases|
 aliases|1004
-carrierfailureroute|
-carrierfailureroute|2
 carrier_name|
 carrier_name|1
+carrierfailureroute|
+carrierfailureroute|2
 carrierroute|
 carrierroute|3
 cpl|

+ 1 - 1
utils/kamctl/dbtext/kamailio/version

@@ -3,8 +3,8 @@ acc:4
 active_watchers:9
 address:4
 aliases:1004
-carrierfailureroute:2
 carrier_name:1
+carrierfailureroute:2
 carrierroute:3
 cpl:1
 dbaliases:1

+ 3 - 2
utils/kamctl/mysql/lcr-create.sql

@@ -13,10 +13,11 @@ CREATE TABLE lcr_gw (
     prefix VARCHAR(16) DEFAULT NULL,
     tag VARCHAR(64) DEFAULT NULL,
     flags INT UNSIGNED DEFAULT 0 NOT NULL,
-    defunct INT UNSIGNED DEFAULT NULL,
-    CONSTRAINT lcr_id_ip_addr_port_hostname_idx UNIQUE (lcr_id, ip_addr, port, hostname)
+    defunct INT UNSIGNED DEFAULT NULL
 ) ENGINE=MyISAM;
 
+CREATE INDEX lcr_id_idx ON lcr_gw (lcr_id);
+
 INSERT INTO version (table_name, table_version) values ('lcr_rule_target','1');
 CREATE TABLE lcr_rule_target (
     id INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,

+ 2 - 2
utils/kamctl/mysql/rls-create.sql

@@ -26,10 +26,10 @@ CREATE TABLE rls_watchers (
     event_id VARCHAR(64),
     to_tag VARCHAR(64) NOT NULL,
     from_tag VARCHAR(64) NOT NULL,
-    callid VARCHAR(64) NOT NULL,
+    callid VARCHAR(128) NOT NULL,
     local_cseq INT(11) NOT NULL,
     remote_cseq INT(11) NOT NULL,
-    contact VARCHAR(64) NOT NULL,
+    contact VARCHAR(128) NOT NULL,
     record_route TEXT,
     expires INT(11) NOT NULL,
     status INT(11) DEFAULT 2 NOT NULL,

+ 3 - 2
utils/kamctl/oracle/lcr-create.sql

@@ -13,8 +13,7 @@ CREATE TABLE lcr_gw (
     prefix VARCHAR2(16) DEFAULT NULL,
     tag VARCHAR2(64) DEFAULT NULL,
     flags NUMBER(10) DEFAULT 0 NOT NULL,
-    defunct NUMBER(10) DEFAULT NULL,
-    CONSTRAINT ORA_lcr_id_ip_addr_port_hostname_idx  UNIQUE (lcr_id, ip_addr, port, hostname)
+    defunct NUMBER(10) DEFAULT NULL
 );
 
 CREATE OR REPLACE TRIGGER lcr_gw_tr
@@ -25,6 +24,8 @@ END lcr_gw_tr;
 /
 BEGIN map2users('lcr_gw'); END;
 /
+CREATE INDEX lcr_gw_lcr_id_idx  ON lcr_gw (lcr_id);
+
 INSERT INTO version (table_name, table_version) values ('lcr_rule_target','1');
 CREATE TABLE lcr_rule_target (
     id NUMBER(10) PRIMARY KEY,

+ 2 - 2
utils/kamctl/oracle/rls-create.sql

@@ -34,10 +34,10 @@ CREATE TABLE rls_watchers (
     event_id VARCHAR2(64),
     to_tag VARCHAR2(64),
     from_tag VARCHAR2(64),
-    callid VARCHAR2(64),
+    callid VARCHAR2(128),
     local_cseq NUMBER(10),
     remote_cseq NUMBER(10),
-    contact VARCHAR2(64),
+    contact VARCHAR2(128),
     record_route CLOB,
     expires NUMBER(10),
     status NUMBER(10) DEFAULT 2 NOT NULL,

+ 3 - 2
utils/kamctl/postgres/lcr-create.sql

@@ -13,10 +13,11 @@ CREATE TABLE lcr_gw (
     prefix VARCHAR(16) DEFAULT NULL,
     tag VARCHAR(64) DEFAULT NULL,
     flags INTEGER DEFAULT 0 NOT NULL,
-    defunct INTEGER DEFAULT NULL,
-    CONSTRAINT lcr_gw_lcr_id_ip_addr_port_hostname_idx UNIQUE (lcr_id, ip_addr, port, hostname)
+    defunct INTEGER DEFAULT NULL
 );
 
+CREATE INDEX lcr_gw_lcr_id_idx ON lcr_gw (lcr_id);
+
 INSERT INTO version (table_name, table_version) values ('lcr_rule_target','1');
 CREATE TABLE lcr_rule_target (
     id SERIAL PRIMARY KEY NOT NULL,

+ 2 - 2
utils/kamctl/postgres/rls-create.sql

@@ -26,10 +26,10 @@ CREATE TABLE rls_watchers (
     event_id VARCHAR(64),
     to_tag VARCHAR(64) NOT NULL,
     from_tag VARCHAR(64) NOT NULL,
-    callid VARCHAR(64) NOT NULL,
+    callid VARCHAR(128) NOT NULL,
     local_cseq INTEGER NOT NULL,
     remote_cseq INTEGER NOT NULL,
-    contact VARCHAR(64) NOT NULL,
+    contact VARCHAR(128) NOT NULL,
     record_route TEXT,
     expires INTEGER NOT NULL,
     status INTEGER DEFAULT 2 NOT NULL,