Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-03-30 10:31:51 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-03-30 10:31:51 +0300
commit31fd83b2aecd0d122d17c4b10d9b39a903da73f3 (patch)
treea5dcd211037950c898dca02e42f67e49ea4e5d82 /sql/pg.sql
parent4b4c039fded441c230608d01e5a2fc011718cb4b (diff)
Add SQL as mod_carboncopy RAM backend
Diffstat (limited to 'sql/pg.sql')
-rw-r--r--sql/pg.sql10
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/pg.sql b/sql/pg.sql
index 6c099fc6b..796391c74 100644
--- a/sql/pg.sql
+++ b/sql/pg.sql
@@ -379,3 +379,13 @@ CREATE TABLE bosh (
);
CREATE UNIQUE INDEX i_bosh_sid ON bosh USING btree (sid);
+
+CREATE TABLE carboncopy (
+ username text NOT NULL,
+ resource text NOT NULL,
+ namespace text NOT NULL,
+ node text NOT NULL
+);
+
+CREATE UNIQUE INDEX i_carboncopy_ur ON carboncopy USING btree (username, resource);
+CREATE INDEX i_carboncopy_user ON carboncopy USING btree (username);