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:
parent
36b7da3ad8
commit
72d9b099c6
7 changed files with 215 additions and 21 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue