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/lite.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 'sql/lite.sql')
-rw-r--r-- | sql/lite.sql | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/lite.sql b/sql/lite.sql index 8b59ef0a..ddfb91ff 100644 --- a/sql/lite.sql +++ b/sql/lite.sql @@ -359,3 +359,13 @@ CREATE TABLE bosh ( ); CREATE UNIQUE INDEX i_bosh_sid ON bosh(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 (username, resource); +CREATE INDEX i_carboncopy_user ON carboncopy (username); |