Browse code

kamctl: refreshed topos db scripts

Daniel-Constantin Mierla authored on 18/03/2016 14:15:57
Showing 10 changed files
... ...
@@ -1,5 +1,5 @@
1 1
 METADATA_COLUMNS
2
-id(int) rectime(datetime) s_method(str) s_cseq(int) a_callid(str) a_uuid(str) b_uuid(str) a_contact(str) b_contact(str) as_contact(str) bs_contact(str) a_tag(str) b_tag(str) a_rr(str) b_rr(str) iflags(int) a_uri(str) b_uri(str) r_uri(str) a_srcip(str) b_srcip(str)
2
+id(int) rectime(datetime) s_method(str) s_cseq(str) a_callid(str) a_uuid(str) b_uuid(str) a_contact(str) b_contact(str) as_contact(str) bs_contact(str) a_tag(str) b_tag(str) a_rr(str) b_rr(str) iflags(int) a_uri(str) b_uri(str) r_uri(str) a_srcip(str) b_srcip(str)
3 3
 METADATA_KEY
4 4
 4 5 6 
5 5
 METADATA_READONLY
... ...
@@ -7,4 +7,4 @@ METADATA_READONLY
7 7
 METADATA_LOGFLAGS
8 8
 0
9 9
 METADATA_DEFAULTS
10
-NIL|NIL|''|0|''|''|''|''|''|''|''|''|''|''|''|0|''|''|''|''|''
10
+NIL|NIL|''|''|''|''|''|''|''|''|''|''|''|''|''|0|''|''|''|''|''
... ...
@@ -1,5 +1,5 @@
1 1
 METADATA_COLUMNS
2
-id(int) rectime(datetime) s_method(str) s_cseq(int) a_callid(str) a_uuid(str) b_uuid(str) direction(int) x_via(str) x_vbranch(str) x_rr(str) x_uri(str) x_tag(str)
2
+id(int) rectime(datetime) s_method(str) s_cseq(str) a_callid(str) a_uuid(str) b_uuid(str) direction(int) x_via(str) x_vbranch(str) x_rr(str) x_uri(str) x_tag(str)
3 3
 METADATA_KEY
4 4
 4 5 6 7 9 
5 5
 METADATA_READONLY
... ...
@@ -7,4 +7,4 @@ METADATA_READONLY
7 7
 METADATA_LOGFLAGS
8 8
 0
9 9
 METADATA_DEFAULTS
10
-NIL|NIL|''|0|''|''|''|0|''|''|''|''|''
10
+NIL|NIL|''|''|''|''|''|0|''|''|''|''|''
... ...
@@ -2,7 +2,7 @@ CREATE TABLE topos_d (
2 2
     id INTEGER PRIMARY KEY NOT NULL,
3 3
     rectime TIMESTAMP WITHOUT TIME ZONE NOT NULL,
4 4
     s_method VARCHAR(64) DEFAULT '' NOT NULL,
5
-    s_cseq INTEGER DEFAULT 0 NOT NULL,
5
+    s_cseq VARCHAR(64) DEFAULT '' NOT NULL,
6 6
     a_callid VARCHAR(255) DEFAULT '' NOT NULL,
7 7
     a_uuid VARCHAR(255) DEFAULT '' NOT NULL,
8 8
     b_uuid VARCHAR(255) DEFAULT '' NOT NULL,
... ...
@@ -31,7 +31,7 @@ CREATE TABLE topos_t (
31 31
     id INTEGER PRIMARY KEY NOT NULL,
32 32
     rectime TIMESTAMP WITHOUT TIME ZONE NOT NULL,
33 33
     s_method VARCHAR(64) DEFAULT '' NOT NULL,
34
-    s_cseq INTEGER DEFAULT 0 NOT NULL,
34
+    s_cseq VARCHAR(64) DEFAULT '' NOT NULL,
35 35
     a_callid VARCHAR(255) DEFAULT '' NOT NULL,
36 36
     a_uuid VARCHAR(255) DEFAULT '' NOT NULL,
37 37
     b_uuid VARCHAR(255) DEFAULT '' NOT NULL,
... ...
@@ -1 +1 @@
1
-id(int,auto) rectime(int) s_method(string) s_cseq(int) a_callid(string) a_uuid(string) b_uuid(string) a_contact(string) b_contact(string) as_contact(string) bs_contact(string) a_tag(string) b_tag(string) a_rr(string) b_rr(string) iflags(int) a_uri(string) b_uri(string) r_uri(string) a_srcip(string) b_srcip(string) 
1
+id(int,auto) rectime(int) s_method(string) s_cseq(string) a_callid(string) a_uuid(string) b_uuid(string) a_contact(string) b_contact(string) as_contact(string) bs_contact(string) a_tag(string) b_tag(string) a_rr(string) b_rr(string) iflags(int) a_uri(string) b_uri(string) r_uri(string) a_srcip(string) b_srcip(string) 
... ...
@@ -1 +1 @@
1
-id(int,auto) rectime(int) s_method(string) s_cseq(int) a_callid(string) a_uuid(string) b_uuid(string) direction(int) x_via(string) x_vbranch(string) x_rr(string) x_uri(string) x_tag(string) 
1
+id(int,auto) rectime(int) s_method(string) s_cseq(string) a_callid(string) a_uuid(string) b_uuid(string) direction(int) x_via(string) x_vbranch(string) x_rr(string) x_uri(string) x_tag(string) 
... ...
@@ -2,7 +2,7 @@ CREATE TABLE `topos_d` (
2 2
     `id` INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
3 3
     `rectime` DATETIME NOT NULL,
4 4
     `s_method` VARCHAR(64) DEFAULT '' NOT NULL,
5
-    `s_cseq` INT UNSIGNED DEFAULT 0 NOT NULL,
5
+    `s_cseq` VARCHAR(64) DEFAULT '' NOT NULL,
6 6
     `a_callid` VARCHAR(255) DEFAULT '' NOT NULL,
7 7
     `a_uuid` VARCHAR(255) DEFAULT '' NOT NULL,
8 8
     `b_uuid` VARCHAR(255) DEFAULT '' NOT NULL,
... ...
@@ -31,7 +31,7 @@ CREATE TABLE `topos_t` (
31 31
     `id` INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
32 32
     `rectime` DATETIME NOT NULL,
33 33
     `s_method` VARCHAR(64) DEFAULT '' NOT NULL,
34
-    `s_cseq` INT UNSIGNED DEFAULT 0 NOT NULL,
34
+    `s_cseq` VARCHAR(64) DEFAULT '' NOT NULL,
35 35
     `a_callid` VARCHAR(255) DEFAULT '' NOT NULL,
36 36
     `a_uuid` VARCHAR(255) DEFAULT '' NOT NULL,
37 37
     `b_uuid` VARCHAR(255) DEFAULT '' NOT NULL,
... ...
@@ -2,7 +2,7 @@ CREATE TABLE topos_d (
2 2
     id NUMBER(10) PRIMARY KEY,
3 3
     rectime DATE,
4 4
     s_method VARCHAR2(64) DEFAULT '',
5
-    s_cseq NUMBER(10) DEFAULT 0 NOT NULL,
5
+    s_cseq VARCHAR2(64) DEFAULT '',
6 6
     a_callid VARCHAR2(255) DEFAULT '',
7 7
     a_uuid VARCHAR2(255) DEFAULT '',
8 8
     b_uuid VARCHAR2(255) DEFAULT '',
... ...
@@ -39,7 +39,7 @@ CREATE TABLE topos_t (
39 39
     id NUMBER(10) PRIMARY KEY,
40 40
     rectime DATE,
41 41
     s_method VARCHAR2(64) DEFAULT '',
42
-    s_cseq NUMBER(10) DEFAULT 0 NOT NULL,
42
+    s_cseq VARCHAR2(64) DEFAULT '',
43 43
     a_callid VARCHAR2(255) DEFAULT '',
44 44
     a_uuid VARCHAR2(255) DEFAULT '',
45 45
     b_uuid VARCHAR2(255) DEFAULT '',
... ...
@@ -2,7 +2,7 @@ CREATE TABLE topos_d (
2 2
     id SERIAL PRIMARY KEY NOT NULL,
3 3
     rectime TIMESTAMP WITHOUT TIME ZONE NOT NULL,
4 4
     s_method VARCHAR(64) DEFAULT '' NOT NULL,
5
-    s_cseq INTEGER DEFAULT 0 NOT NULL,
5
+    s_cseq VARCHAR(64) DEFAULT '' NOT NULL,
6 6
     a_callid VARCHAR(255) DEFAULT '' NOT NULL,
7 7
     a_uuid VARCHAR(255) DEFAULT '' NOT NULL,
8 8
     b_uuid VARCHAR(255) DEFAULT '' NOT NULL,
... ...
@@ -31,7 +31,7 @@ CREATE TABLE topos_t (
31 31
     id SERIAL PRIMARY KEY NOT NULL,
32 32
     rectime TIMESTAMP WITHOUT TIME ZONE NOT NULL,
33 33
     s_method VARCHAR(64) DEFAULT '' NOT NULL,
34
-    s_cseq INTEGER DEFAULT 0 NOT NULL,
34
+    s_cseq VARCHAR(64) DEFAULT '' NOT NULL,
35 35
     a_callid VARCHAR(255) DEFAULT '' NOT NULL,
36 36
     a_uuid VARCHAR(255) DEFAULT '' NOT NULL,
37 37
     b_uuid VARCHAR(255) DEFAULT '' NOT NULL,
... ...
@@ -755,7 +755,7 @@
755 755
 		<column><field>id</field><type>DB1_INT</type></column>
756 756
 		<column><field>rectime</field><type>DB1_DATETIME</type></column>
757 757
 		<column><field>s_method</field><type>DB1_STR</type></column>
758
-		<column><field>s_cseq</field><type>DB1_INT</type></column>
758
+		<column><field>s_cseq</field><type>DB1_STR</type></column>
759 759
 		<column><field>a_callid</field><type>DB1_STR</type></column>
760 760
 		<column><field>a_uuid</field><type>DB1_STR</type></column>
761 761
 		<column><field>b_uuid</field><type>DB1_STR</type></column>
... ...
@@ -781,7 +781,7 @@
781 781
 		<column><field>id</field><type>DB1_INT</type></column>
782 782
 		<column><field>rectime</field><type>DB1_DATETIME</type></column>
783 783
 		<column><field>s_method</field><type>DB1_STR</type></column>
784
-		<column><field>s_cseq</field><type>DB1_INT</type></column>
784
+		<column><field>s_cseq</field><type>DB1_STR</type></column>
785 785
 		<column><field>a_callid</field><type>DB1_STR</type></column>
786 786
 		<column><field>a_uuid</field><type>DB1_STR</type></column>
787 787
 		<column><field>b_uuid</field><type>DB1_STR</type></column>
... ...
@@ -5,7 +5,7 @@
5 5
 		<column><field>id</field><type>DB1_INT</type></column>
6 6
 		<column><field>rectime</field><type>DB1_DATETIME</type></column>
7 7
 		<column><field>s_method</field><type>DB1_STR</type></column>
8
-		<column><field>s_cseq</field><type>DB1_INT</type></column>
8
+		<column><field>s_cseq</field><type>DB1_STR</type></column>
9 9
 		<column><field>a_callid</field><type>DB1_STR</type></column>
10 10
 		<column><field>a_uuid</field><type>DB1_STR</type></column>
11 11
 		<column><field>b_uuid</field><type>DB1_STR</type></column>
... ...
@@ -31,7 +31,7 @@
31 31
 		<column><field>id</field><type>DB1_INT</type></column>
32 32
 		<column><field>rectime</field><type>DB1_DATETIME</type></column>
33 33
 		<column><field>s_method</field><type>DB1_STR</type></column>
34
-		<column><field>s_cseq</field><type>DB1_INT</type></column>
34
+		<column><field>s_cseq</field><type>DB1_STR</type></column>
35 35
 		<column><field>a_callid</field><type>DB1_STR</type></column>
36 36
 		<column><field>a_uuid</field><type>DB1_STR</type></column>
37 37
 		<column><field>b_uuid</field><type>DB1_STR</type></column>