diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-03-30 10:31:51 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-03-30 10:31:51 +0300 |
commit | 31fd83b2aecd0d122d17c4b10d9b39a903da73f3 (patch) | |
tree | a5dcd211037950c898dca02e42f67e49ea4e5d82 /sql/pg.sql | |
parent | oauth_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.sql | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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); |