summaryrefslogtreecommitdiff
path: root/sql/pg.sql
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
parentoauth_list_tokens and oauth_revoke_token work only in Mnesia (#1644) (diff)
Add SQL as mod_carboncopy RAM backend
Diffstat (limited to '')
-rw-r--r--sql/pg.sql10
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/pg.sql b/sql/pg.sql
index 6c099fc6..796391c7 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);