aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2018-04-24 14:44:52 +0200
committerChristophe Romain <christophe.romain@process-one.net>2018-04-24 14:44:52 +0200
commit61dee97738f6f6459a9b5cb26ae29c3e27db7dd9 (patch)
treee377e4d3495362949831809efdf7e76f806b8d84 /sql
parentGet rid of useless memory/disk usage warnings (diff)
Pubsub creation/modification use varchar (#2397)
Diffstat (limited to 'sql')
-rw-r--r--sql/lite.new.sql4
-rw-r--r--sql/lite.sql4
-rw-r--r--sql/mssql.sql4
-rw-r--r--sql/mysql.new.sql4
-rw-r--r--sql/mysql.sql4
-rw-r--r--sql/pg.new.sql4
-rw-r--r--sql/pg.sql4
7 files changed, 14 insertions, 14 deletions
diff --git a/sql/lite.new.sql b/sql/lite.new.sql
index ef22fe3d7..b1ff14fd1 100644
--- a/sql/lite.new.sql
+++ b/sql/lite.new.sql
@@ -259,8 +259,8 @@ CREATE TABLE pubsub_item (
nodeid bigint REFERENCES pubsub_node(nodeid) ON DELETE CASCADE,
itemid text NOT NULL,
publisher text NOT NULL,
- creation text NOT NULL,
- modification text NOT NULL,
+ creation varchar(32) NOT NULL,
+ modification varchar(32) NOT NULL,
payload text NOT NULL DEFAULT ''
);
CREATE INDEX i_pubsub_item_itemid ON pubsub_item (itemid);
diff --git a/sql/lite.sql b/sql/lite.sql
index 2eecec78a..eb6b2ab4c 100644
--- a/sql/lite.sql
+++ b/sql/lite.sql
@@ -236,8 +236,8 @@ CREATE TABLE pubsub_item (
nodeid bigint REFERENCES pubsub_node(nodeid) ON DELETE CASCADE,
itemid text NOT NULL,
publisher text NOT NULL,
- creation text NOT NULL,
- modification text NOT NULL,
+ creation varchar(32) NOT NULL,
+ modification varchar(32) NOT NULL,
payload text NOT NULL DEFAULT ''
);
CREATE INDEX i_pubsub_item_itemid ON pubsub_item (itemid);
diff --git a/sql/mssql.sql b/sql/mssql.sql
index 2dbe473c0..648dfb9ed 100644
--- a/sql/mssql.sql
+++ b/sql/mssql.sql
@@ -220,8 +220,8 @@ CREATE TABLE [dbo].[pubsub_item] (
[nodeid] [bigint] NULL,
[itemid] [varchar] (255) NOT NULL,
[publisher] [text] NOT NULL,
- [creation] [text] NOT NULL,
- [modification] [varchar] (255) NOT NULL,
+ [creation] [varchar] (32) NOT NULL,
+ [modification] [varchar] (32) NOT NULL,
[payload] [text] NOT NULL DEFAULT ''
) TEXTIMAGE_ON [PRIMARY];
diff --git a/sql/mysql.new.sql b/sql/mysql.new.sql
index d9c4cb915..395a8aa64 100644
--- a/sql/mysql.new.sql
+++ b/sql/mysql.new.sql
@@ -274,8 +274,8 @@ CREATE TABLE pubsub_item (
nodeid bigint,
itemid text NOT NULL,
publisher text NOT NULL,
- creation text NOT NULL,
- modification text NOT NULL,
+ creation varchar(32) NOT NULL,
+ modification varchar(32) NOT NULL,
payload text NOT NULL
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE INDEX i_pubsub_item_itemid ON pubsub_item(itemid(36));
diff --git a/sql/mysql.sql b/sql/mysql.sql
index aea9e454e..1d7e4c4e7 100644
--- a/sql/mysql.sql
+++ b/sql/mysql.sql
@@ -251,8 +251,8 @@ CREATE TABLE pubsub_item (
nodeid bigint,
itemid text NOT NULL,
publisher text NOT NULL,
- creation text NOT NULL,
- modification text NOT NULL,
+ creation varchar(32) NOT NULL,
+ modification varchar(32) NOT NULL,
payload text NOT NULL
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE INDEX i_pubsub_item_itemid ON pubsub_item(itemid(36));
diff --git a/sql/pg.new.sql b/sql/pg.new.sql
index 66d934236..82fafa64c 100644
--- a/sql/pg.new.sql
+++ b/sql/pg.new.sql
@@ -428,8 +428,8 @@ CREATE TABLE pubsub_item (
nodeid bigint REFERENCES pubsub_node(nodeid) ON DELETE CASCADE,
itemid text NOT NULL,
publisher text NOT NULL,
- creation text NOT NULL,
- modification text NOT NULL,
+ creation varchar(32) NOT NULL,
+ modification varchar(32) NOT NULL,
payload text NOT NULL DEFAULT ''
);
CREATE INDEX i_pubsub_item_itemid ON pubsub_item USING btree (itemid);
diff --git a/sql/pg.sql b/sql/pg.sql
index 16456fe0f..4863cb721 100644
--- a/sql/pg.sql
+++ b/sql/pg.sql
@@ -254,8 +254,8 @@ CREATE TABLE pubsub_item (
nodeid bigint REFERENCES pubsub_node(nodeid) ON DELETE CASCADE,
itemid text NOT NULL,
publisher text NOT NULL,
- creation text NOT NULL,
- modification text NOT NULL,
+ creation varchar(32) NOT NULL,
+ modification varchar(32) NOT NULL,
payload text NOT NULL DEFAULT ''
);
CREATE INDEX i_pubsub_item_itemid ON pubsub_item USING btree (itemid);