Skip to content

Commit

Permalink
msilo dbschema: avoid setting a default value for the body field
Browse files Browse the repository at this point in the history
	* this causes errors/warnings on backends such as MySQL/MariaDB
  • Loading branch information
liviuchircu committed Apr 11, 2014
1 parent 4fd00f1 commit 5c790aa
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion db/schema/silo.xml
Expand Up @@ -92,7 +92,6 @@
<column>
<name>body</name>
<type>binary</type>
<default/>
<description>Body of the message</description>
</column>

Expand Down
2 changes: 1 addition & 1 deletion scripts/db_berkeley/opensips/silo
Expand Up @@ -7,4 +7,4 @@ METADATA_READONLY
METADATA_LOGFLAGS
0
METADATA_DEFAULTS
NIL|''|''|''|''|0|0|0|'text/plain'|''
NIL|''|''|''|''|0|0|0|'text/plain'|NIL
2 changes: 1 addition & 1 deletion scripts/mysql/msilo-create.sql
Expand Up @@ -9,7 +9,7 @@ CREATE TABLE silo (
exp_time INT DEFAULT 0 NOT NULL,
snd_time INT DEFAULT 0 NOT NULL,
ctype CHAR(32) DEFAULT 'text/plain' NOT NULL,
body BLOB DEFAULT '' NOT NULL
body BLOB NOT NULL
) ENGINE=MyISAM;

CREATE INDEX account_idx ON silo (username, domain);
Expand Down
2 changes: 1 addition & 1 deletion scripts/oracle/msilo-create.sql
Expand Up @@ -9,7 +9,7 @@ CREATE TABLE silo (
exp_time NUMBER(10) DEFAULT 0 NOT NULL,
snd_time NUMBER(10) DEFAULT 0 NOT NULL,
ctype VARCHAR2(32) DEFAULT 'text/plain',
body BLOB DEFAULT ''
body BLOB
);

CREATE OR REPLACE TRIGGER silo_tr
Expand Down
2 changes: 1 addition & 1 deletion scripts/postgres/msilo-create.sql
Expand Up @@ -9,7 +9,7 @@ CREATE TABLE silo (
exp_time INTEGER DEFAULT 0 NOT NULL,
snd_time INTEGER DEFAULT 0 NOT NULL,
ctype VARCHAR(32) DEFAULT 'text/plain' NOT NULL,
body BYTEA DEFAULT '' NOT NULL
body BYTEA NOT NULL
);

CREATE INDEX silo_account_idx ON silo (username, domain);
Expand Down

0 comments on commit 5c790aa

Please sign in to comment.