Ver código fonte

kamctl: regenerated db schema for location table

Daniel-Constantin Mierla 10 anos atrás
pai
commit
5d298d69cb

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

@@ -1,5 +1,5 @@
 METADATA_COLUMNS
-id(int) ruid(str) username(str) domain(str) contact(str) received(str) path(str) expires(datetime) q(double) callid(str) cseq(int) last_modified(datetime) flags(int) cflags(int) user_agent(str) socket(str) methods(int) instance(str) reg_id(int) server_id(int) connection_id(int) keepalive(int)
+id(int) ruid(str) username(str) domain(str) contact(str) received(str) path(str) expires(datetime) q(double) callid(str) cseq(int) last_modified(datetime) flags(int) cflags(int) user_agent(str) socket(str) methods(int) instance(str) reg_id(int) server_id(int) connection_id(int) keepalive(int) partition(int)
 METADATA_KEY
 1 2 3 
 METADATA_READONLY
@@ -7,4 +7,4 @@ METADATA_READONLY
 METADATA_LOGFLAGS
 0
 METADATA_DEFAULTS
-NIL|''|''|NULL|''|NULL|NULL|'2030-05-28 21:32:15'|1.0|'Default-Call-ID'|1|'1900-01-01 00:00:01'|0|0|''|NULL|NULL|NULL|0|0|0|0
+NIL|''|''|NULL|''|NULL|NULL|'2030-05-28 21:32:15'|1.0|'Default-Call-ID'|1|'1900-01-01 00:00:01'|0|0|''|NULL|NULL|NULL|0|0|0|0|0

+ 1 - 0
utils/kamctl/db_sqlite/usrloc-create.sql

@@ -22,6 +22,7 @@ CREATE TABLE location (
     server_id INTEGER DEFAULT 0 NOT NULL,
     connection_id INTEGER DEFAULT 0 NOT NULL,
     keepalive INTEGER DEFAULT 0 NOT NULL,
+    partition INTEGER DEFAULT 0 NOT NULL,
     CONSTRAINT location_ruid_idx UNIQUE (ruid)
 );
 

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

@@ -1 +1 @@
-id(int,auto) ruid(string) username(string) domain(string,null) contact(string) received(string,null) path(string,null) expires(int) q(double) callid(string) cseq(int) last_modified(int) flags(int) cflags(int) user_agent(string) socket(string,null) methods(int,null) instance(string,null) reg_id(int) server_id(int) connection_id(int) keepalive(int) 
+id(int,auto) ruid(string) username(string) domain(string,null) contact(string) received(string,null) path(string,null) expires(int) q(double) callid(string) cseq(int) last_modified(int) flags(int) cflags(int) user_agent(string) socket(string,null) methods(int,null) instance(string,null) reg_id(int) server_id(int) connection_id(int) keepalive(int) partition(int) 

+ 1 - 0
utils/kamctl/mysql/usrloc-create.sql

@@ -22,6 +22,7 @@ CREATE TABLE location (
     server_id INT(11) DEFAULT 0 NOT NULL,
     connection_id INT(11) DEFAULT 0 NOT NULL,
     keepalive INT(11) DEFAULT 0 NOT NULL,
+    partition INT(11) DEFAULT 0 NOT NULL,
     CONSTRAINT ruid_idx UNIQUE (ruid)
 );
 

+ 1 - 0
utils/kamctl/oracle/usrloc-create.sql

@@ -22,6 +22,7 @@ CREATE TABLE location (
     server_id NUMBER(10) DEFAULT 0 NOT NULL,
     connection_id NUMBER(10) DEFAULT 0 NOT NULL,
     keepalive NUMBER(10) DEFAULT 0 NOT NULL,
+    partition NUMBER(10) DEFAULT 0 NOT NULL,
     CONSTRAINT location_ruid_idx  UNIQUE (ruid)
 );
 

+ 1 - 0
utils/kamctl/postgres/usrloc-create.sql

@@ -22,6 +22,7 @@ CREATE TABLE location (
     server_id INTEGER DEFAULT 0 NOT NULL,
     connection_id INTEGER DEFAULT 0 NOT NULL,
     keepalive INTEGER DEFAULT 0 NOT NULL,
+    partition INTEGER DEFAULT 0 NOT NULL,
     CONSTRAINT location_ruid_idx UNIQUE (ruid)
 );
 

+ 4 - 0
utils/kamctl/xhttp_pi/pi_framework.xml

@@ -881,6 +881,7 @@
 		<column><field>server_id</field><type>DB1_INT</type></column>
 		<column><field>connection_id</field><type>DB1_INT</type></column>
 		<column><field>keepalive</field><type>DB1_INT</type></column>
+		<column><field>partition</field><type>DB1_INT</type></column>
 	</db_table>
 	<!-- Declaration of location_attrs table-->
 	<db_table id="location_attrs">
@@ -4318,6 +4319,7 @@
 				<col><field>server_id</field></col>
 				<col><field>connection_id</field></col>
 				<col><field>keepalive</field></col>
+				<col><field>partition</field></col>
 			</query_cols>
 		</cmd>
 		<cmd><cmd_name>add</cmd_name>
@@ -4345,6 +4347,7 @@
 				<col><field>server_id</field></col>
 				<col><field>connection_id</field></col>
 				<col><field>keepalive</field></col>
+				<col><field>partition</field></col>
 			</query_cols>
 		</cmd>
 		<cmd><cmd_name>update</cmd_name>
@@ -4375,6 +4378,7 @@
 				<col><field>server_id</field></col>
 				<col><field>connection_id</field></col>
 				<col><field>keepalive</field></col>
+				<col><field>partition</field></col>
 			</query_cols>
 		</cmd>
 		<cmd><cmd_name>delete</cmd_name>

+ 3 - 0
utils/kamctl/xhttp_pi/usrloc-mod

@@ -26,6 +26,7 @@
 				<col><field>server_id</field></col>
 				<col><field>connection_id</field></col>
 				<col><field>keepalive</field></col>
+				<col><field>partition</field></col>
 			</query_cols>
 		</cmd>
 		<cmd><cmd_name>add</cmd_name>
@@ -53,6 +54,7 @@
 				<col><field>server_id</field></col>
 				<col><field>connection_id</field></col>
 				<col><field>keepalive</field></col>
+				<col><field>partition</field></col>
 			</query_cols>
 		</cmd>
 		<cmd><cmd_name>update</cmd_name>
@@ -83,6 +85,7 @@
 				<col><field>server_id</field></col>
 				<col><field>connection_id</field></col>
 				<col><field>keepalive</field></col>
+				<col><field>partition</field></col>
 			</query_cols>
 		</cmd>
 		<cmd><cmd_name>delete</cmd_name>

+ 1 - 0
utils/kamctl/xhttp_pi/usrloc-table

@@ -24,6 +24,7 @@
 		<column><field>server_id</field><type>DB1_INT</type></column>
 		<column><field>connection_id</field><type>DB1_INT</type></column>
 		<column><field>keepalive</field><type>DB1_INT</type></column>
+		<column><field>partition</field><type>DB1_INT</type></column>
 	</db_table>
 	<!-- Declaration of location_attrs table-->
 	<db_table id="location_attrs">