mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
Add SQL as mod_carboncopy RAM backend
This commit is contained in:
parent
4b4c039fde
commit
31fd83b2ae
8 changed files with 157 additions and 13 deletions
10
sql/pg.sql
10
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue