mirror of
https://github.com/processone/ejabberd
synced 2025-10-05 02:29:34 +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
|
@ -375,3 +375,13 @@ CREATE TABLE bosh (
|
|||
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
|
||||
CREATE UNIQUE INDEX i_bosh_sid ON bosh(sid(75));
|
||||
|
||||
CREATE TABLE carboncopy (
|
||||
username text NOT NULL,
|
||||
resource text NOT NULL,
|
||||
namespace text NOT NULL,
|
||||
node text NOT NULL
|
||||
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
|
||||
CREATE UNIQUE INDEX i_carboncopy_ur ON carboncopy (username(75), resource(75));
|
||||
CREATE INDEX i_carboncopy_user ON carboncopy (username(75));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue