Browse code

kamctl: regenerated db schema - updates to sip_trace and presentity

Daniel-Constantin Mierla authored on 26/03/2015 18:57:12
Showing 21 changed files
... ...
@@ -1,5 +1,5 @@
1 1
 METADATA_COLUMNS
2
-id(int) username(str) domain(str) event(str) etag(str) expires(int) received_time(int) body(str) sender(str)
2
+id(int) username(str) domain(str) event(str) etag(str) expires(int) received_time(int) body(str) sender(str) priority(int)
3 3
 METADATA_KEY
4 4
 1 2 3 
5 5
 METADATA_READONLY
... ...
@@ -7,4 +7,4 @@ METADATA_READONLY
7 7
 METADATA_LOGFLAGS
8 8
 0
9 9
 METADATA_DEFAULTS
10
-NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL
10
+NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|0
... ...
@@ -1,5 +1,5 @@
1 1
 METADATA_COLUMNS
2
-id(int) time_stamp(datetime) time_us(int) callid(str) traced_user(str) msg(str) method(str) status(str) fromip(str) toip(str) fromtag(str) direction(str)
2
+id(int) time_stamp(datetime) time_us(int) callid(str) traced_user(str) msg(str) method(str) status(str) fromip(str) toip(str) fromtag(str) totag(str) direction(str)
3 3
 METADATA_KEY
4 4
 3 
5 5
 METADATA_READONLY
... ...
@@ -7,4 +7,4 @@ METADATA_READONLY
7 7
 METADATA_LOGFLAGS
8 8
 0
9 9
 METADATA_DEFAULTS
10
-NIL|'1900-01-01 00:00:01'|0|''|''|NIL|''|''|''|''|''|''
10
+NIL|'1900-01-01 00:00:01'|0|''|''|NIL|''|''|''|''|''|''|''
... ...
@@ -89,7 +89,7 @@ pdt|1
89 89
 pl_pipes|
90 90
 pl_pipes|1
91 91
 presentity|
92
-presentity|3
92
+presentity|4
93 93
 pua|
94 94
 pua|7
95 95
 purplemap|
... ...
@@ -107,7 +107,7 @@ sca_subscriptions|1
107 107
 silo|
108 108
 silo|7
109 109
 sip_trace|
110
-sip_trace|3
110
+sip_trace|4
111 111
 speed_dial|
112 112
 speed_dial|2
113 113
 subscriber|
... ...
@@ -1,4 +1,4 @@
1
-INSERT INTO version (table_name, table_version) values ('presentity','3');
1
+INSERT INTO version (table_name, table_version) values ('presentity','4');
2 2
 CREATE TABLE presentity (
3 3
     id INTEGER PRIMARY KEY NOT NULL,
4 4
     username VARCHAR(64) NOT NULL,
... ...
@@ -9,6 +9,7 @@ CREATE TABLE presentity (
9 9
     received_time INTEGER NOT NULL,
10 10
     body BLOB NOT NULL,
11 11
     sender VARCHAR(128) NOT NULL,
12
+    priority INTEGER DEFAULT 0 NOT NULL,
12 13
     CONSTRAINT presentity_presentity_idx UNIQUE (username, domain, event, etag)
13 14
 );
14 15
 
... ...
@@ -1,4 +1,4 @@
1
-INSERT INTO version (table_name, table_version) values ('sip_trace','3');
1
+INSERT INTO version (table_name, table_version) values ('sip_trace','4');
2 2
 CREATE TABLE sip_trace (
3 3
     id INTEGER PRIMARY KEY NOT NULL,
4 4
     time_stamp TIMESTAMP WITHOUT TIME ZONE DEFAULT '1900-01-01 00:00:01' NOT NULL,
... ...
@@ -11,6 +11,7 @@ CREATE TABLE sip_trace (
11 11
     fromip VARCHAR(50) DEFAULT '' NOT NULL,
12 12
     toip VARCHAR(50) DEFAULT '' NOT NULL,
13 13
     fromtag VARCHAR(64) DEFAULT '' NOT NULL,
14
+    totag VARCHAR(64) DEFAULT '' NOT NULL,
14 15
     direction VARCHAR(4) DEFAULT '' NOT NULL
15 16
 );
16 17
 
... ...
@@ -1 +1 @@
1
-id(int,auto) dpid(int) pr(int) match_op(int) match_exp(string) match_len(int) subst_exp(string,null) repl_exp(string,null) attrs(string,null) 
1
+id(int,auto) dpid(int) pr(int) match_op(int) match_exp(string) match_len(int) subst_exp(string) repl_exp(string) attrs(string) 
... ...
@@ -1 +1 @@
1
-id(int,auto) username(string) domain(string) event(string) etag(string) expires(int) received_time(int) body(string) sender(string) 
1
+id(int,auto) username(string) domain(string) event(string) etag(string) expires(int) received_time(int) body(string) sender(string) priority(int) 
... ...
@@ -1 +1 @@
1
-id(int,auto) time_stamp(int) time_us(int) callid(string) traced_user(string) msg(string) method(string) status(string) fromip(string) toip(string) fromtag(string) direction(string) 
1
+id(int,auto) time_stamp(int) time_us(int) callid(string) traced_user(string) msg(string) method(string) status(string) fromip(string) toip(string) fromtag(string) totag(string) direction(string) 
... ...
@@ -1 +1 @@
1
-id(int,auto) username(string) domain(string) password(string) email_address(string,null) ha1(string,null) ha1b(string,null) rpid(string,null) 
1
+id(int,auto) username(string) domain(string) password(string) email_address(string) ha1(string) ha1b(string) rpid(string,null) 
... ...
@@ -39,7 +39,7 @@ mtree:1
39 39
 mtrees:2
40 40
 pdt:1
41 41
 pl_pipes:1
42
-presentity:3
42
+presentity:4
43 43
 pua:7
44 44
 purplemap:1
45 45
 re_grp:1
... ...
@@ -48,7 +48,7 @@ rls_watchers:3
48 48
 rtpproxy:1
49 49
 sca_subscriptions:1
50 50
 silo:7
51
-sip_trace:3
51
+sip_trace:4
52 52
 speed_dial:2
53 53
 subscriber:6
54 54
 trusted:5
... ...
@@ -1,4 +1,4 @@
1
-INSERT INTO version (table_name, table_version) values ('presentity','3');
1
+INSERT INTO version (table_name, table_version) values ('presentity','4');
2 2
 CREATE TABLE presentity (
3 3
     id INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
4 4
     username VARCHAR(64) NOT NULL,
... ...
@@ -9,6 +9,7 @@ CREATE TABLE presentity (
9 9
     received_time INT(11) NOT NULL,
10 10
     body BLOB NOT NULL,
11 11
     sender VARCHAR(128) NOT NULL,
12
+    priority INT(11) DEFAULT 0 NOT NULL,
12 13
     CONSTRAINT presentity_idx UNIQUE (username, domain, event, etag)
13 14
 );
14 15
 
... ...
@@ -1,4 +1,4 @@
1
-INSERT INTO version (table_name, table_version) values ('sip_trace','3');
1
+INSERT INTO version (table_name, table_version) values ('sip_trace','4');
2 2
 CREATE TABLE sip_trace (
3 3
     id INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
4 4
     time_stamp DATETIME DEFAULT '1900-01-01 00:00:01' NOT NULL,
... ...
@@ -11,6 +11,7 @@ CREATE TABLE sip_trace (
11 11
     fromip VARCHAR(50) DEFAULT '' NOT NULL,
12 12
     toip VARCHAR(50) DEFAULT '' NOT NULL,
13 13
     fromtag VARCHAR(64) DEFAULT '' NOT NULL,
14
+    totag VARCHAR(64) DEFAULT '' NOT NULL,
14 15
     direction VARCHAR(4) DEFAULT '' NOT NULL
15 16
 );
16 17
 
... ...
@@ -1,4 +1,4 @@
1
-INSERT INTO version (table_name, table_version) values ('presentity','3');
1
+INSERT INTO version (table_name, table_version) values ('presentity','4');
2 2
 CREATE TABLE presentity (
3 3
     id NUMBER(10) PRIMARY KEY,
4 4
     username VARCHAR2(64),
... ...
@@ -9,6 +9,7 @@ CREATE TABLE presentity (
9 9
     received_time NUMBER(10),
10 10
     body BLOB,
11 11
     sender VARCHAR2(128),
12
+    priority NUMBER(10) DEFAULT 0 NOT NULL,
12 13
     CONSTRAINT presentity_presentity_idx  UNIQUE (username, domain, event, etag)
13 14
 );
14 15
 
... ...
@@ -1,4 +1,4 @@
1
-INSERT INTO version (table_name, table_version) values ('sip_trace','3');
1
+INSERT INTO version (table_name, table_version) values ('sip_trace','4');
2 2
 CREATE TABLE sip_trace (
3 3
     id NUMBER(10) PRIMARY KEY,
4 4
     time_stamp DATE DEFAULT to_date('1900-01-01 00:00:01','yyyy-mm-dd hh24:mi:ss'),
... ...
@@ -11,6 +11,7 @@ CREATE TABLE sip_trace (
11 11
     fromip VARCHAR2(50) DEFAULT '',
12 12
     toip VARCHAR2(50) DEFAULT '',
13 13
     fromtag VARCHAR2(64) DEFAULT '',
14
+    totag VARCHAR2(64) DEFAULT '',
14 15
     direction VARCHAR2(4) DEFAULT ''
15 16
 );
16 17
 
... ...
@@ -1,4 +1,4 @@
1
-INSERT INTO version (table_name, table_version) values ('presentity','3');
1
+INSERT INTO version (table_name, table_version) values ('presentity','4');
2 2
 CREATE TABLE presentity (
3 3
     id SERIAL PRIMARY KEY NOT NULL,
4 4
     username VARCHAR(64) NOT NULL,
... ...
@@ -9,6 +9,7 @@ CREATE TABLE presentity (
9 9
     received_time INTEGER NOT NULL,
10 10
     body BYTEA NOT NULL,
11 11
     sender VARCHAR(128) NOT NULL,
12
+    priority INTEGER DEFAULT 0 NOT NULL,
12 13
     CONSTRAINT presentity_presentity_idx UNIQUE (username, domain, event, etag)
13 14
 );
14 15
 
... ...
@@ -1,4 +1,4 @@
1
-INSERT INTO version (table_name, table_version) values ('sip_trace','3');
1
+INSERT INTO version (table_name, table_version) values ('sip_trace','4');
2 2
 CREATE TABLE sip_trace (
3 3
     id SERIAL PRIMARY KEY NOT NULL,
4 4
     time_stamp TIMESTAMP WITHOUT TIME ZONE DEFAULT '1900-01-01 00:00:01' NOT NULL,
... ...
@@ -11,6 +11,7 @@ CREATE TABLE sip_trace (
11 11
     fromip VARCHAR(50) DEFAULT '' NOT NULL,
12 12
     toip VARCHAR(50) DEFAULT '' NOT NULL,
13 13
     fromtag VARCHAR(64) DEFAULT '' NOT NULL,
14
+    totag VARCHAR(64) DEFAULT '' NOT NULL,
14 15
     direction VARCHAR(4) DEFAULT '' NOT NULL
15 16
 );
16 17
 
... ...
@@ -503,6 +503,7 @@
503 503
 		<column><field>received_time</field><type>DB1_INT</type></column>
504 504
 		<column><field>body</field><type>DB1_BLOB</type></column>
505 505
 		<column><field>sender</field><type>DB1_STR</type></column>
506
+		<column><field>priority</field><type>DB1_INT</type></column>
506 507
 	</db_table>
507 508
 	<!-- Declaration of active_watchers table-->
508 509
 	<db_table id="active_watchers">
... ...
@@ -706,6 +707,7 @@
706 706
 		<column><field>fromip</field><type>DB1_STR</type></column>
707 707
 		<column><field>toip</field><type>DB1_STR</type></column>
708 708
 		<column><field>fromtag</field><type>DB1_STR</type></column>
709
+		<column><field>totag</field><type>DB1_STR</type></column>
709 710
 		<column><field>direction</field><type>DB1_STR</type></column>
710 711
 	</db_table>
711 712
 	<!-- Declaration of speed_dial table-->
... ...
@@ -2871,6 +2873,7 @@
2871 2871
 				<col><field>received_time</field></col>
2872 2872
 				<col><field>body</field></col>
2873 2873
 				<col><field>sender</field></col>
2874
+				<col><field>priority</field></col>
2874 2875
 			</query_cols>
2875 2876
 		</cmd>
2876 2877
 		<cmd><cmd_name>add</cmd_name>
... ...
@@ -2885,6 +2888,7 @@
2885 2885
 				<col><field>received_time</field></col>
2886 2886
 				<col><field>body</field></col>
2887 2887
 				<col><field>sender</field></col>
2888
+				<col><field>priority</field></col>
2888 2889
 			</query_cols>
2889 2890
 		</cmd>
2890 2891
 		<cmd><cmd_name>update</cmd_name>
... ...
@@ -2902,6 +2906,7 @@
2902 2902
 				<col><field>received_time</field></col>
2903 2903
 				<col><field>body</field></col>
2904 2904
 				<col><field>sender</field></col>
2905
+				<col><field>priority</field></col>
2905 2906
 			</query_cols>
2906 2907
 		</cmd>
2907 2908
 		<cmd><cmd_name>delete</cmd_name>
... ...
@@ -3630,6 +3635,7 @@
3630 3630
 				<col><field>fromip</field></col>
3631 3631
 				<col><field>toip</field></col>
3632 3632
 				<col><field>fromtag</field></col>
3633
+				<col><field>totag</field></col>
3633 3634
 				<col><field>direction</field></col>
3634 3635
 			</query_cols>
3635 3636
 		</cmd>
... ...
@@ -3647,6 +3653,7 @@
3647 3647
 				<col><field>fromip</field></col>
3648 3648
 				<col><field>toip</field></col>
3649 3649
 				<col><field>fromtag</field></col>
3650
+				<col><field>totag</field></col>
3650 3651
 				<col><field>direction</field></col>
3651 3652
 			</query_cols>
3652 3653
 		</cmd>
... ...
@@ -3667,6 +3674,7 @@
3667 3667
 				<col><field>fromip</field></col>
3668 3668
 				<col><field>toip</field></col>
3669 3669
 				<col><field>fromtag</field></col>
3670
+				<col><field>totag</field></col>
3670 3671
 				<col><field>direction</field></col>
3671 3672
 			</query_cols>
3672 3673
 		</cmd>
... ...
@@ -13,6 +13,7 @@
13 13
 				<col><field>received_time</field></col>
14 14
 				<col><field>body</field></col>
15 15
 				<col><field>sender</field></col>
16
+				<col><field>priority</field></col>
16 17
 			</query_cols>
17 18
 		</cmd>
18 19
 		<cmd><cmd_name>add</cmd_name>
... ...
@@ -27,6 +28,7 @@
27 27
 				<col><field>received_time</field></col>
28 28
 				<col><field>body</field></col>
29 29
 				<col><field>sender</field></col>
30
+				<col><field>priority</field></col>
30 31
 			</query_cols>
31 32
 		</cmd>
32 33
 		<cmd><cmd_name>update</cmd_name>
... ...
@@ -44,6 +46,7 @@
44 44
 				<col><field>received_time</field></col>
45 45
 				<col><field>body</field></col>
46 46
 				<col><field>sender</field></col>
47
+				<col><field>priority</field></col>
47 48
 			</query_cols>
48 49
 		</cmd>
49 50
 		<cmd><cmd_name>delete</cmd_name>
... ...
@@ -11,6 +11,7 @@
11 11
 		<column><field>received_time</field><type>DB1_INT</type></column>
12 12
 		<column><field>body</field><type>DB1_BLOB</type></column>
13 13
 		<column><field>sender</field><type>DB1_STR</type></column>
14
+		<column><field>priority</field><type>DB1_INT</type></column>
14 15
 	</db_table>
15 16
 	<!-- Declaration of active_watchers table-->
16 17
 	<db_table id="active_watchers">
... ...
@@ -15,6 +15,7 @@
15 15
 				<col><field>fromip</field></col>
16 16
 				<col><field>toip</field></col>
17 17
 				<col><field>fromtag</field></col>
18
+				<col><field>totag</field></col>
18 19
 				<col><field>direction</field></col>
19 20
 			</query_cols>
20 21
 		</cmd>
... ...
@@ -32,6 +33,7 @@
32 32
 				<col><field>fromip</field></col>
33 33
 				<col><field>toip</field></col>
34 34
 				<col><field>fromtag</field></col>
35
+				<col><field>totag</field></col>
35 36
 				<col><field>direction</field></col>
36 37
 			</query_cols>
37 38
 		</cmd>
... ...
@@ -52,6 +54,7 @@
52 52
 				<col><field>fromip</field></col>
53 53
 				<col><field>toip</field></col>
54 54
 				<col><field>fromtag</field></col>
55
+				<col><field>totag</field></col>
55 56
 				<col><field>direction</field></col>
56 57
 			</query_cols>
57 58
 		</cmd>
... ...
@@ -13,5 +13,6 @@
13 13
 		<column><field>fromip</field><type>DB1_STR</type></column>
14 14
 		<column><field>toip</field><type>DB1_STR</type></column>
15 15
 		<column><field>fromtag</field><type>DB1_STR</type></column>
16
+		<column><field>totag</field><type>DB1_STR</type></column>
16 17
 		<column><field>direction</field><type>DB1_STR</type></column>
17 18
 	</db_table>