Skip to content

Commit

Permalink
[dbschema] updated according to the latest dispatcher format
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-iancu committed May 9, 2024
1 parent 115faea commit b99d7c6
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion scripts/db_berkeley/opensips/dispatcher
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ METADATA_READONLY
METADATA_LOGFLAGS
0
METADATA_DEFAULTS
NIL|0|''|NULL|0|0|1|0|''|''
NIL|0|''|NULL|0|0|1|0|NULL|NULL
2 changes: 1 addition & 1 deletion scripts/dbtext/opensips/dispatcher
Original file line number Diff line number Diff line change
@@ -1 +1 @@
id(int,auto) setid(int) destination(string) socket(string,null) state(int) probe_mode(int) weight(string) priority(int) attrs(string) description(string)
id(int,auto) setid(int) destination(string) socket(string,null) state(int) probe_mode(int) weight(string) priority(int) attrs(string,null) description(string,null)
4 changes: 2 additions & 2 deletions scripts/mysql/dispatcher-create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ CREATE TABLE dispatcher (
probe_mode INT(11) UNSIGNED DEFAULT 0 NOT NULL,
weight CHAR(64) DEFAULT 1 NOT NULL,
priority INT DEFAULT 0 NOT NULL,
attrs CHAR(128) DEFAULT '' NOT NULL,
description CHAR(64) DEFAULT '' NOT NULL
attrs CHAR(128) DEFAULT NULL,
description CHAR(64) DEFAULT NULL
) ENGINE=InnoDB;

4 changes: 2 additions & 2 deletions scripts/oracle/dispatcher-create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ CREATE TABLE dispatcher (
probe_mode NUMBER(10) DEFAULT 0 NOT NULL,
weight VARCHAR2(64) DEFAULT 1 NOT NULL,
priority NUMBER(10) DEFAULT 0 NOT NULL,
attrs VARCHAR2(128) DEFAULT '',
description VARCHAR2(64) DEFAULT ''
attrs VARCHAR2(128) DEFAULT NULL,
description VARCHAR2(64) DEFAULT NULL
);

CREATE OR REPLACE TRIGGER dispatcher_tr
Expand Down
4 changes: 2 additions & 2 deletions scripts/postgres/dispatcher-create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ CREATE TABLE dispatcher (
probe_mode INTEGER DEFAULT 0 NOT NULL,
weight VARCHAR(64) DEFAULT 1 NOT NULL,
priority INTEGER DEFAULT 0 NOT NULL,
attrs VARCHAR(128) DEFAULT '' NOT NULL,
description VARCHAR(64) DEFAULT '' NOT NULL
attrs VARCHAR(128) DEFAULT NULL,
description VARCHAR(64) DEFAULT NULL
);

ALTER SEQUENCE dispatcher_id_seq MAXVALUE 2147483647 CYCLE;
4 changes: 2 additions & 2 deletions scripts/sqlite/dispatcher-create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ CREATE TABLE dispatcher (
probe_mode INTEGER DEFAULT 0 NOT NULL,
weight CHAR(64) DEFAULT 1 NOT NULL,
priority INTEGER DEFAULT 0 NOT NULL,
attrs CHAR(128) DEFAULT '' NOT NULL,
description CHAR(64) DEFAULT '' NOT NULL
attrs CHAR(128) DEFAULT NULL,
description CHAR(64) DEFAULT NULL
);

0 comments on commit b99d7c6

Please sign in to comment.