summaryrefslogtreecommitdiff
path: root/sql/lite.sql
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-03-29 12:58:01 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-03-29 12:58:01 +0300
commit12e01a51196a656955d79869a05ec3db1fc2f9bb (patch)
treefa10a2a65f65f1ec51faae466cdec594bb68375f /sql/lite.sql
parentAdd Redis as mod_bosh RAM backend (diff)
Add SQL as mod_muc RAM backend
Diffstat (limited to 'sql/lite.sql')
-rw-r--r--sql/lite.sql21
1 files changed, 21 insertions, 0 deletions
diff --git a/sql/lite.sql b/sql/lite.sql
index c17d80ec..8b59ef0a 100644
--- a/sql/lite.sql
+++ b/sql/lite.sql
@@ -275,6 +275,27 @@ CREATE TABLE muc_registered (
CREATE INDEX i_muc_registered_nick ON muc_registered (nick);
CREATE UNIQUE INDEX i_muc_registered_jid_host ON muc_registered (jid, host);
+CREATE TABLE muc_online_room (
+ name text NOT NULL,
+ host text NOT NULL,
+ node text NOT NULL,
+ pid text NOT NULL
+);
+
+CREATE UNIQUE INDEX i_muc_online_room_name_host ON muc_online_room (name, host);
+
+CREATE TABLE muc_online_users (
+ username text NOT NULL,
+ server text NOT NULL,
+ resource text NOT NULL,
+ name text NOT NULL,
+ host text NOT NULL,
+ node text NOT NULL
+);
+
+CREATE UNIQUE INDEX i_muc_online_users ON muc_online_users (username, server, resource, name, host);
+CREATE INDEX i_muc_online_users_us ON muc_online_users (username, server);
+
CREATE TABLE irc_custom (
jid text NOT NULL,
host text NOT NULL,