1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 17:59:31 +02:00

Make it possible to use SQL as an SM backend

This commit is contained in:
Evgeniy Khramtsov 2015-03-09 16:41:13 +03:00
parent 36b7da3ad8
commit 72d9b099c6
7 changed files with 215 additions and 21 deletions

View file

@ -278,3 +278,17 @@ CREATE TABLE caps_features (
) ENGINE=InnoDB CHARACTER SET utf8;
CREATE INDEX i_caps_features_node_subnode ON caps_features(node(75), subnode(75));
CREATE TABLE sm (
usec bigint NOT NULL,
pid text NOT NULL,
node text NOT NULL,
username varchar(250) NOT NULL,
resource varchar(250) NOT NULL,
priority text NOT NULL,
info text NOT NULL
) ENGINE=InnoDB CHARACTER SET utf8;
CREATE UNIQUE INDEX i_sid ON sm(usec, pid(75));
CREATE INDEX i_node ON sm(node(75));
CREATE INDEX i_username ON sm(username);