mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Pubsub creation/modification use varchar (#2397)
This commit is contained in:
parent
ad6fcc7865
commit
61dee97738
@ -259,8 +259,8 @@ CREATE TABLE pubsub_item (
|
|||||||
nodeid bigint REFERENCES pubsub_node(nodeid) ON DELETE CASCADE,
|
nodeid bigint REFERENCES pubsub_node(nodeid) ON DELETE CASCADE,
|
||||||
itemid text NOT NULL,
|
itemid text NOT NULL,
|
||||||
publisher text NOT NULL,
|
publisher text NOT NULL,
|
||||||
creation text NOT NULL,
|
creation varchar(32) NOT NULL,
|
||||||
modification text NOT NULL,
|
modification varchar(32) NOT NULL,
|
||||||
payload text NOT NULL DEFAULT ''
|
payload text NOT NULL DEFAULT ''
|
||||||
);
|
);
|
||||||
CREATE INDEX i_pubsub_item_itemid ON pubsub_item (itemid);
|
CREATE INDEX i_pubsub_item_itemid ON pubsub_item (itemid);
|
||||||
|
@ -236,8 +236,8 @@ CREATE TABLE pubsub_item (
|
|||||||
nodeid bigint REFERENCES pubsub_node(nodeid) ON DELETE CASCADE,
|
nodeid bigint REFERENCES pubsub_node(nodeid) ON DELETE CASCADE,
|
||||||
itemid text NOT NULL,
|
itemid text NOT NULL,
|
||||||
publisher text NOT NULL,
|
publisher text NOT NULL,
|
||||||
creation text NOT NULL,
|
creation varchar(32) NOT NULL,
|
||||||
modification text NOT NULL,
|
modification varchar(32) NOT NULL,
|
||||||
payload text NOT NULL DEFAULT ''
|
payload text NOT NULL DEFAULT ''
|
||||||
);
|
);
|
||||||
CREATE INDEX i_pubsub_item_itemid ON pubsub_item (itemid);
|
CREATE INDEX i_pubsub_item_itemid ON pubsub_item (itemid);
|
||||||
|
@ -220,8 +220,8 @@ CREATE TABLE [dbo].[pubsub_item] (
|
|||||||
[nodeid] [bigint] NULL,
|
[nodeid] [bigint] NULL,
|
||||||
[itemid] [varchar] (255) NOT NULL,
|
[itemid] [varchar] (255) NOT NULL,
|
||||||
[publisher] [text] NOT NULL,
|
[publisher] [text] NOT NULL,
|
||||||
[creation] [text] NOT NULL,
|
[creation] [varchar] (32) NOT NULL,
|
||||||
[modification] [varchar] (255) NOT NULL,
|
[modification] [varchar] (32) NOT NULL,
|
||||||
[payload] [text] NOT NULL DEFAULT ''
|
[payload] [text] NOT NULL DEFAULT ''
|
||||||
) TEXTIMAGE_ON [PRIMARY];
|
) TEXTIMAGE_ON [PRIMARY];
|
||||||
|
|
||||||
|
@ -274,8 +274,8 @@ CREATE TABLE pubsub_item (
|
|||||||
nodeid bigint,
|
nodeid bigint,
|
||||||
itemid text NOT NULL,
|
itemid text NOT NULL,
|
||||||
publisher text NOT NULL,
|
publisher text NOT NULL,
|
||||||
creation text NOT NULL,
|
creation varchar(32) NOT NULL,
|
||||||
modification text NOT NULL,
|
modification varchar(32) NOT NULL,
|
||||||
payload text NOT NULL
|
payload text NOT NULL
|
||||||
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
CREATE INDEX i_pubsub_item_itemid ON pubsub_item(itemid(36));
|
CREATE INDEX i_pubsub_item_itemid ON pubsub_item(itemid(36));
|
||||||
|
@ -251,8 +251,8 @@ CREATE TABLE pubsub_item (
|
|||||||
nodeid bigint,
|
nodeid bigint,
|
||||||
itemid text NOT NULL,
|
itemid text NOT NULL,
|
||||||
publisher text NOT NULL,
|
publisher text NOT NULL,
|
||||||
creation text NOT NULL,
|
creation varchar(32) NOT NULL,
|
||||||
modification text NOT NULL,
|
modification varchar(32) NOT NULL,
|
||||||
payload text NOT NULL
|
payload text NOT NULL
|
||||||
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
CREATE INDEX i_pubsub_item_itemid ON pubsub_item(itemid(36));
|
CREATE INDEX i_pubsub_item_itemid ON pubsub_item(itemid(36));
|
||||||
|
@ -428,8 +428,8 @@ CREATE TABLE pubsub_item (
|
|||||||
nodeid bigint REFERENCES pubsub_node(nodeid) ON DELETE CASCADE,
|
nodeid bigint REFERENCES pubsub_node(nodeid) ON DELETE CASCADE,
|
||||||
itemid text NOT NULL,
|
itemid text NOT NULL,
|
||||||
publisher text NOT NULL,
|
publisher text NOT NULL,
|
||||||
creation text NOT NULL,
|
creation varchar(32) NOT NULL,
|
||||||
modification text NOT NULL,
|
modification varchar(32) NOT NULL,
|
||||||
payload text NOT NULL DEFAULT ''
|
payload text NOT NULL DEFAULT ''
|
||||||
);
|
);
|
||||||
CREATE INDEX i_pubsub_item_itemid ON pubsub_item USING btree (itemid);
|
CREATE INDEX i_pubsub_item_itemid ON pubsub_item USING btree (itemid);
|
||||||
|
@ -254,8 +254,8 @@ CREATE TABLE pubsub_item (
|
|||||||
nodeid bigint REFERENCES pubsub_node(nodeid) ON DELETE CASCADE,
|
nodeid bigint REFERENCES pubsub_node(nodeid) ON DELETE CASCADE,
|
||||||
itemid text NOT NULL,
|
itemid text NOT NULL,
|
||||||
publisher text NOT NULL,
|
publisher text NOT NULL,
|
||||||
creation text NOT NULL,
|
creation varchar(32) NOT NULL,
|
||||||
modification text NOT NULL,
|
modification varchar(32) NOT NULL,
|
||||||
payload text NOT NULL DEFAULT ''
|
payload text NOT NULL DEFAULT ''
|
||||||
);
|
);
|
||||||
CREATE INDEX i_pubsub_item_itemid ON pubsub_item USING btree (itemid);
|
CREATE INDEX i_pubsub_item_itemid ON pubsub_item USING btree (itemid);
|
||||||
|
Loading…
Reference in New Issue
Block a user