Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion db/schema/trie_table.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</column>

<column id="enabled">
<name>priority</name>
<name>enabled</name>
<type>int</type>
<size>11</size>
<default>1</default>
Expand Down
2 changes: 1 addition & 1 deletion scripts/db_berkeley/opensips/trie_table
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
METADATA_COLUMNS
ruleid(int) prefix(str) attrs(str) priority(int)
ruleid(int) prefix(str) attrs(str) enabled(int)
METADATA_KEY
0
METADATA_READONLY
Expand Down
2 changes: 1 addition & 1 deletion scripts/dbtext/opensips/trie_table
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruleid(int,auto) prefix(string) attrs(string,null) priority(int)
ruleid(int,auto) prefix(string) attrs(string,null) enabled(int)
2 changes: 1 addition & 1 deletion scripts/mysql/trie-create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ CREATE TABLE trie_table (
ruleid INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
prefix CHAR(64) NOT NULL,
attrs CHAR(255) DEFAULT NULL,
priority INT(11) DEFAULT 1 NOT NULL
enabled INT(11) DEFAULT 1 NOT NULL
) ENGINE=InnoDB;

INSERT INTO version (table_name, table_version) values ('trie_partitions','1');
Expand Down
2 changes: 1 addition & 1 deletion scripts/oracle/trie-create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ CREATE TABLE trie_table (
ruleid NUMBER(10) PRIMARY KEY,
prefix VARCHAR2(64),
attrs VARCHAR2(255) DEFAULT NULL,
priority NUMBER(10) DEFAULT 1 NOT NULL
enabled NUMBER(10) DEFAULT 1 NOT NULL
);

CREATE OR REPLACE TRIGGER trie_table_tr
Expand Down
6 changes: 3 additions & 3 deletions scripts/pi_http/trie-mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<col><field>ruleid</field><link_cmd>update</link_cmd></col>
<col><field>prefix</field></col>
<col><field>attrs</field></col>
<col><field>priority</field></col>
<col><field>enabled</field></col>
</query_cols>
</cmd>
<cmd><cmd_name>add</cmd_name>
Expand All @@ -16,7 +16,7 @@
<query_cols>
<col><field>prefix</field></col>
<col><field>attrs</field></col>
<col><field>priority</field></col>
<col><field>enabled</field></col>
</query_cols>
</cmd>
<cmd><cmd_name>update</cmd_name>
Expand All @@ -28,7 +28,7 @@
<query_cols>
<col><field>prefix</field></col>
<col><field>attrs</field></col>
<col><field>priority</field></col>
<col><field>enabled</field></col>
</query_cols>
</cmd>
<cmd><cmd_name>delete</cmd_name>
Expand Down
2 changes: 1 addition & 1 deletion scripts/pi_http/trie-table
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<column><field>ruleid</field><type>DB_INT</type></column>
<column><field>prefix</field><type>DB_STR</type></column>
<column><field>attrs</field><type>DB_STR</type></column>
<column><field>priority</field><type>DB_INT</type></column>
<column><field>enabled</field><type>DB_INT</type></column>
</db_table>
<!-- Declaration of trie_partitions table-->
<db_table id="trie_partitions">
Expand Down
2 changes: 1 addition & 1 deletion scripts/postgres/trie-create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ CREATE TABLE trie_table (
ruleid SERIAL PRIMARY KEY NOT NULL,
prefix VARCHAR(64) NOT NULL,
attrs VARCHAR(255) DEFAULT NULL,
priority INTEGER DEFAULT 1 NOT NULL
enabled INTEGER DEFAULT 1 NOT NULL
);

ALTER SEQUENCE trie_table_ruleid_seq MAXVALUE 2147483647 CYCLE;
Expand Down
2 changes: 1 addition & 1 deletion scripts/sqlite/trie-create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ CREATE TABLE trie_table (
ruleid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
prefix CHAR(64) NOT NULL,
attrs CHAR(255) DEFAULT NULL,
priority INTEGER DEFAULT 1 NOT NULL
enabled INTEGER DEFAULT 1 NOT NULL
);

INSERT INTO version (table_name, table_version) values ('trie_partitions','1');
Expand Down
Loading