Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DB schema regenerated (to add the emergency tables)
- Loading branch information
1 parent
6cc12f1
commit 95328b5
Showing
10 changed files
with
393 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
METADATA_COLUMNS | ||
id(int) callid(str) selectiveRoutingID(str) routingESN(int) "npa(int) esgwri(str) lro(str) VPC_organizationName(str) VPC_hostname(str) VPC_timestamp(str) result(str) disposition(str) | ||
METADATA_KEY | ||
0 | ||
METADATA_READONLY | ||
0 | ||
METADATA_LOGFLAGS | ||
0 | ||
METADATA_DEFAULTS | ||
NIL|NIL|NIL|0|0|NIL|NIL|NIL|NIL|NIL|NIL|NIL | ||
emergency_report| | ||
emergency_report|1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
METADATA_COLUMNS | ||
id(int) selectiveRoutingID(str) routingESN(int) "npa(int) esgwri(str) | ||
METADATA_KEY | ||
0 | ||
METADATA_READONLY | ||
0 | ||
METADATA_LOGFLAGS | ||
0 | ||
METADATA_DEFAULTS | ||
NIL|NIL|0|0|NIL | ||
emergency_routing| | ||
emergency_routing|1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
id(int,auto) callid(string) selectiveRoutingID(string) routingESN(int) "npa(int) esgwri(string) lro(string) VPC_organizationName(string) VPC_hostname(string) VPC_timestamp(string) result(string) disposition(string) | ||
emergency_report:1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
id(int,auto) selectiveRoutingID(string) routingESN(int) "npa(int) esgwri(string) | ||
emergency_routing:1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
INSERT INTO version (table_name, table_version) values ('emergency_routing','1'); | ||
CREATE TABLE emergency_routing ( | ||
id NUMBER(10) PRIMARY KEY, | ||
selectiveRoutingID VARCHAR2(11), | ||
routingESN NUMBER(10) DEFAULT 0 NOT NULL, | ||
"npa NUMBER(10) DEFAULT 0 NOT NULL, | ||
esgwri VARCHAR2(50) | ||
); | ||
CREATE OR REPLACE TRIGGER emergency_routing_tr | ||
before insert on emergency_routing FOR EACH ROW | ||
BEGIN | ||
auto_id(:NEW.id); | ||
END emergency_routing_tr; | ||
/ | ||
BEGIN map2users('emergency_routing'); END; | ||
/ | ||
INSERT INTO version (table_name, table_version) values ('emergency_report','1'); | ||
CREATE TABLE emergency_report ( | ||
id NUMBER(10) PRIMARY KEY, | ||
callid VARCHAR2(25), | ||
selectiveRoutingID VARCHAR2(11), | ||
routingESN NUMBER(10) DEFAULT 0 NOT NULL, | ||
"npa NUMBER(10) DEFAULT 0 NOT NULL, | ||
esgwri VARCHAR2(50), | ||
lro VARCHAR2(20), | ||
VPC_organizationName VARCHAR2(50), | ||
VPC_hostname VARCHAR2(50), | ||
VPC_timestamp VARCHAR2(30), | ||
result VARCHAR2(4), | ||
disposition VARCHAR2(10) | ||
); | ||
|
||
CREATE OR REPLACE TRIGGER emergency_report_tr | ||
before insert on emergency_report FOR EACH ROW | ||
BEGIN | ||
auto_id(:NEW.id); | ||
END emergency_report_tr; | ||
/ | ||
BEGIN map2users('emergency_report'); END; | ||
/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
<!-- emergency_routing provisionning --> | ||
<mod><mod_name>emergency_routing</mod_name> | ||
<cmd><cmd_name>show</cmd_name> | ||
<db_table_id>emergency_routing</db_table_id> | ||
<cmd_type>DB_QUERY</cmd_type> | ||
<query_cols> | ||
<col><field>id</field><link_cmd>update</link_cmd></col> | ||
<col><field>selectiveRoutingID</field></col> | ||
<col><field>routingESN</field></col> | ||
<col><field>"npa</field></col> | ||
<col><field>esgwri</field></col> | ||
</query_cols> | ||
</cmd> | ||
<cmd><cmd_name>add</cmd_name> | ||
<db_table_id>emergency_routing</db_table_id> | ||
<cmd_type>DB_INSERT</cmd_type> | ||
<query_cols> | ||
<col><field>selectiveRoutingID</field></col> | ||
<col><field>routingESN</field></col> | ||
<col><field>"npa</field></col> | ||
<col><field>esgwri</field></col> | ||
</query_cols> | ||
</cmd> | ||
<cmd><cmd_name>update</cmd_name> | ||
<db_table_id>emergency_routing</db_table_id> | ||
<cmd_type>DB_UPDATE</cmd_type> | ||
<clause_cols> | ||
<col><field>id</field><operator>=</operator></col> | ||
</clause_cols> | ||
<query_cols> | ||
<col><field>selectiveRoutingID</field></col> | ||
<col><field>routingESN</field></col> | ||
<col><field>"npa</field></col> | ||
<col><field>esgwri</field></col> | ||
</query_cols> | ||
</cmd> | ||
<cmd><cmd_name>delete</cmd_name> | ||
<db_table_id>emergency_routing</db_table_id> | ||
<cmd_type>DB_DELETE</cmd_type> | ||
<clause_cols> | ||
<col><field>id</field><operator>=</operator></col> | ||
</clause_cols> | ||
</cmd> | ||
</mod> | ||
<!-- emergency_report provisionning --> | ||
<mod><mod_name>emergency_report</mod_name> | ||
<cmd><cmd_name>show</cmd_name> | ||
<db_table_id>emergency_report</db_table_id> | ||
<cmd_type>DB_QUERY</cmd_type> | ||
<query_cols> | ||
<col><field>id</field><link_cmd>update</link_cmd></col> | ||
<col><field>callid</field></col> | ||
<col><field>selectiveRoutingID</field></col> | ||
<col><field>routingESN</field></col> | ||
<col><field>"npa</field></col> | ||
<col><field>esgwri</field></col> | ||
<col><field>lro</field></col> | ||
<col><field>VPC_organizationName</field></col> | ||
<col><field>VPC_hostname</field></col> | ||
<col><field>VPC_timestamp</field></col> | ||
<col><field>result</field></col> | ||
<col><field>disposition</field></col> | ||
</query_cols> | ||
</cmd> | ||
<cmd><cmd_name>add</cmd_name> | ||
<db_table_id>emergency_report</db_table_id> | ||
<cmd_type>DB_INSERT</cmd_type> | ||
<query_cols> | ||
<col><field>callid</field></col> | ||
<col><field>selectiveRoutingID</field></col> | ||
<col><field>routingESN</field></col> | ||
<col><field>"npa</field></col> | ||
<col><field>esgwri</field></col> | ||
<col><field>lro</field></col> | ||
<col><field>VPC_organizationName</field></col> | ||
<col><field>VPC_hostname</field></col> | ||
<col><field>VPC_timestamp</field></col> | ||
<col><field>result</field></col> | ||
<col><field>disposition</field></col> | ||
</query_cols> | ||
</cmd> | ||
<cmd><cmd_name>update</cmd_name> | ||
<db_table_id>emergency_report</db_table_id> | ||
<cmd_type>DB_UPDATE</cmd_type> | ||
<clause_cols> | ||
<col><field>id</field><operator>=</operator></col> | ||
</clause_cols> | ||
<query_cols> | ||
<col><field>callid</field></col> | ||
<col><field>selectiveRoutingID</field></col> | ||
<col><field>routingESN</field></col> | ||
<col><field>"npa</field></col> | ||
<col><field>esgwri</field></col> | ||
<col><field>lro</field></col> | ||
<col><field>VPC_organizationName</field></col> | ||
<col><field>VPC_hostname</field></col> | ||
<col><field>VPC_timestamp</field></col> | ||
<col><field>result</field></col> | ||
<col><field>disposition</field></col> | ||
</query_cols> | ||
</cmd> | ||
<cmd><cmd_name>delete</cmd_name> | ||
<db_table_id>emergency_report</db_table_id> | ||
<cmd_type>DB_DELETE</cmd_type> | ||
<clause_cols> | ||
<col><field>id</field><operator>=</operator></col> | ||
</clause_cols> | ||
</cmd> | ||
</mod> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!-- Declaration of emergency_routing table--> | ||
<db_table id="emergency_routing"> | ||
<table_name>emergency_routing</table_name> | ||
<db_url_id>mysql</db_url_id> | ||
<column><field>id</field><type>DB_INT</type></column> | ||
<column><field>selectiveRoutingID</field><type>DB_STR</type></column> | ||
<column><field>routingESN</field><type>DB_INT</type></column> | ||
<column><field>"npa</field><type>DB_INT</type></column> | ||
<column><field>esgwri</field><type>DB_STR</type></column> | ||
</db_table> | ||
<!-- Declaration of emergency_report table--> | ||
<db_table id="emergency_report"> | ||
<table_name>emergency_report</table_name> | ||
<db_url_id>mysql</db_url_id> | ||
<column><field>id</field><type>DB_INT</type></column> | ||
<column><field>callid</field><type>DB_STR</type></column> | ||
<column><field>selectiveRoutingID</field><type>DB_STR</type></column> | ||
<column><field>routingESN</field><type>DB_INT</type></column> | ||
<column><field>"npa</field><type>DB_INT</type></column> | ||
<column><field>esgwri</field><type>DB_STR</type></column> | ||
<column><field>lro</field><type>DB_STR</type></column> | ||
<column><field>VPC_organizationName</field><type>DB_STR</type></column> | ||
<column><field>VPC_hostname</field><type>DB_STR</type></column> | ||
<column><field>VPC_timestamp</field><type>DB_STR</type></column> | ||
<column><field>result</field><type>DB_STR</type></column> | ||
<column><field>disposition</field><type>DB_STR</type></column> | ||
</db_table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
INSERT INTO version (table_name, table_version) values ('emergency_routing','1'); | ||
CREATE TABLE emergency_routing ( | ||
id SERIAL PRIMARY KEY NOT NULL, | ||
selectiveRoutingID VARCHAR(11) NOT NULL, | ||
routingESN INTEGER DEFAULT 0 NOT NULL, | ||
"npa INTEGER DEFAULT 0 NOT NULL, | ||
esgwri VARCHAR(50) NOT NULL | ||
); | ||
ALTER SEQUENCE emergency_routing_id_seq MAXVALUE 2147483647 CYCLE; | ||
INSERT INTO version (table_name, table_version) values ('emergency_report','1'); | ||
CREATE TABLE emergency_report ( | ||
id SERIAL PRIMARY KEY NOT NULL, | ||
callid VARCHAR(25) NOT NULL, | ||
selectiveRoutingID VARCHAR(11) NOT NULL, | ||
routingESN INTEGER DEFAULT 0 NOT NULL, | ||
"npa INTEGER DEFAULT 0 NOT NULL, | ||
esgwri VARCHAR(50) NOT NULL, | ||
lro VARCHAR(20) NOT NULL, | ||
VPC_organizationName VARCHAR(50) NOT NULL, | ||
VPC_hostname VARCHAR(50) NOT NULL, | ||
VPC_timestamp VARCHAR(30) NOT NULL, | ||
result VARCHAR(4) NOT NULL, | ||
disposition VARCHAR(10) NOT NULL | ||
); | ||
|
||
ALTER SEQUENCE emergency_report_id_seq MAXVALUE 2147483647 CYCLE; |
Oops, something went wrong.