mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
MySQL: Use MEDIUMTEXT for MAM/offline messages
Let MySQL/MariaDB accept message stanzas with a size of up to 16 MiB, rather than truncating at 64 KiB.
This commit is contained in:
parent
d4579d2a20
commit
3367c5b120
@ -90,7 +90,7 @@ CREATE INDEX i_sr_user_sh_grp ON sr_user(server_host(191), grp);
|
|||||||
CREATE TABLE spool (
|
CREATE TABLE spool (
|
||||||
username varchar(191) NOT NULL,
|
username varchar(191) NOT NULL,
|
||||||
server_host text NOT NULL,
|
server_host text NOT NULL,
|
||||||
xml BLOB NOT NULL,
|
xml mediumtext NOT NULL,
|
||||||
seq BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE,
|
seq BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE,
|
||||||
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||||
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
@ -104,8 +104,8 @@ CREATE TABLE archive (
|
|||||||
timestamp BIGINT UNSIGNED NOT NULL,
|
timestamp BIGINT UNSIGNED NOT NULL,
|
||||||
peer varchar(191) NOT NULL,
|
peer varchar(191) NOT NULL,
|
||||||
bare_peer varchar(191) NOT NULL,
|
bare_peer varchar(191) NOT NULL,
|
||||||
xml text NOT NULL,
|
xml mediumtext NOT NULL,
|
||||||
txt text,
|
txt mediumtext,
|
||||||
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE,
|
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE,
|
||||||
kind varchar(10),
|
kind varchar(10),
|
||||||
nick varchar(191),
|
nick varchar(191),
|
||||||
|
@ -80,7 +80,7 @@ CREATE INDEX i_sr_user_grp ON sr_user(grp);
|
|||||||
|
|
||||||
CREATE TABLE spool (
|
CREATE TABLE spool (
|
||||||
username varchar(191) NOT NULL,
|
username varchar(191) NOT NULL,
|
||||||
xml BLOB NOT NULL,
|
xml mediumtext NOT NULL,
|
||||||
seq BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE,
|
seq BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE,
|
||||||
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||||
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
@ -93,8 +93,8 @@ CREATE TABLE archive (
|
|||||||
timestamp BIGINT UNSIGNED NOT NULL,
|
timestamp BIGINT UNSIGNED NOT NULL,
|
||||||
peer varchar(191) NOT NULL,
|
peer varchar(191) NOT NULL,
|
||||||
bare_peer varchar(191) NOT NULL,
|
bare_peer varchar(191) NOT NULL,
|
||||||
xml text NOT NULL,
|
xml mediumtext NOT NULL,
|
||||||
txt text,
|
txt mediumtext,
|
||||||
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE,
|
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE,
|
||||||
kind varchar(10),
|
kind varchar(10),
|
||||||
nick varchar(191),
|
nick varchar(191),
|
||||||
|
Loading…
Reference in New Issue
Block a user