CREATE TABLE users (
username varchar(191) NOT NULL,
- server_host text NOT NULL,
+ server_host varchar(191) NOT NULL,
password text NOT NULL,
serverkey varchar(64) NOT NULL DEFAULT '',
salt varchar(64) NOT NULL DEFAULT '',
CREATE TABLE last (
username varchar(191) NOT NULL,
- server_host text NOT NULL,
+ server_host varchar(191) NOT NULL,
seconds text NOT NULL,
state text NOT NULL,
PRIMARY KEY (server_host(191), username)
CREATE TABLE rosterusers (
username varchar(191) NOT NULL,
- server_host text NOT NULL,
+ server_host varchar(191) NOT NULL,
jid varchar(191) NOT NULL,
nick text NOT NULL,
subscription character(1) NOT NULL,
CREATE TABLE rostergroups (
username varchar(191) NOT NULL,
- server_host text NOT NULL,
+ server_host varchar(191) NOT NULL,
jid varchar(191) NOT NULL,
grp text NOT NULL
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE TABLE sr_group (
name varchar(191) NOT NULL,
- server_host text NOT NULL,
+ server_host varchar(191) NOT NULL,
opts text NOT NULL,
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (server_host(191), name)
CREATE TABLE sr_user (
jid varchar(191) NOT NULL,
- server_host text NOT NULL,
+ server_host varchar(191) NOT NULL,
grp varchar(191) NOT NULL,
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (server_host(191), jid, grp)
CREATE TABLE spool (
username varchar(191) NOT NULL,
- server_host text NOT NULL,
+ server_host varchar(191) NOT NULL,
xml mediumtext NOT NULL,
seq BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE,
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
CREATE TABLE archive (
username varchar(191) NOT NULL,
- server_host text NOT NULL,
+ server_host varchar(191) NOT NULL,
timestamp BIGINT UNSIGNED NOT NULL,
peer varchar(191) NOT NULL,
bare_peer varchar(191) NOT NULL,
CREATE TABLE archive_prefs (
username varchar(191) NOT NULL,
- server_host text NOT NULL,
+ server_host varchar(191) NOT NULL,
def text NOT NULL,
always text NOT NULL,
never text NOT NULL,
CREATE TABLE vcard (
username varchar(191) NOT NULL,
- server_host text NOT NULL,
+ server_host varchar(191) NOT NULL,
vcard mediumtext NOT NULL,
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (server_host(191), username)
CREATE TABLE vcard_search (
username varchar(191) NOT NULL,
lusername varchar(191) NOT NULL,
- server_host text NOT NULL,
+ server_host varchar(191) NOT NULL,
fn text NOT NULL,
lfn varchar(191) NOT NULL,
family text NOT NULL,
CREATE TABLE privacy_default_list (
username varchar(191) NOT NULL,
- server_host text NOT NULL,
+ server_host varchar(191) NOT NULL,
name varchar(191) NOT NULL,
PRIMARY KEY (server_host(191), username)
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE TABLE privacy_list (
username varchar(191) NOT NULL,
- server_host text NOT NULL,
+ server_host varchar(191) NOT NULL,
name varchar(191) NOT NULL,
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE,
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
CREATE TABLE private_storage (
username varchar(191) NOT NULL,
- server_host text NOT NULL,
+ server_host varchar(191) NOT NULL,
namespace varchar(191) NOT NULL,
data text NOT NULL,
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
-- Not tested in mysql
CREATE TABLE roster_version (
username varchar(191) NOT NULL,
- server_host text NOT NULL,
+ server_host varchar(191) NOT NULL,
version text NOT NULL,
PRIMARY KEY (server_host(191), username)
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE TABLE muc_room (
name text NOT NULL,
host text NOT NULL,
- server_host text NOT NULL,
+ server_host varchar(191) NOT NULL,
opts mediumtext NOT NULL,
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE TABLE muc_registered (
jid text NOT NULL,
host text NOT NULL,
- server_host text NOT NULL,
+ server_host varchar(191) NOT NULL,
nick text NOT NULL,
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE TABLE muc_online_room (
name text NOT NULL,
host text NOT NULL,
- server_host text NOT NULL,
+ server_host varchar(191) NOT NULL,
node text NOT NULL,
pid text NOT NULL
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
resource text NOT NULL,
name text NOT NULL,
host text NOT NULL,
- server_host text NOT NULL,
+ server_host varchar(191) NOT NULL,
node text NOT NULL
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE TABLE motd (
username varchar(191) NOT NULL,
- server_host text NOT NULL,
+ server_host varchar(191) NOT NULL,
xml text,
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (server_host(191), username)
pid text NOT NULL,
node text NOT NULL,
username varchar(191) NOT NULL,
- server_host text NOT NULL,
+ server_host varchar(191) NOT NULL,
resource varchar(191) NOT NULL,
priority text NOT NULL,
info text NOT NULL,
CREATE TABLE route (
domain text NOT NULL,
- server_host text NOT NULL,
+ server_host varchar(191) NOT NULL,
node text NOT NULL,
pid text NOT NULL,
local_hint text NOT NULL
CREATE TABLE push_session (
username text NOT NULL,
- server_host text NOT NULL,
+ server_host varchar(191) NOT NULL,
timestamp bigint NOT NULL,
service text NOT NULL,
node text NOT NULL,
CREATE TABLE mix_pam (
username text NOT NULL,
- server_host text NOT NULL,
+ server_host varchar(191) NOT NULL,
channel text NOT NULL,
service text NOT NULL,
id text NOT NULL,