Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-03-28 16:31:37 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-03-28 16:31:37 +0300
commit117f31125d4d1e39f6bf639360ff37a44664dbb2 (patch)
treec9ce313e6f7d2d82ac0f1543354ec86c2cbb978e /sql/pg.sql
parent5b6d042de221c3a8f23b73f5eff55c9a16df6698 (diff)
Add SQL as router RAM backend
Diffstat (limited to 'sql/pg.sql')
-rw-r--r--sql/pg.sql11
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/pg.sql b/sql/pg.sql
index 2ce9d1379..fac806e8a 100644
--- a/sql/pg.sql
+++ b/sql/pg.sql
@@ -339,3 +339,14 @@ CREATE TABLE oauth_token (
);
CREATE UNIQUE INDEX i_oauth_token_token ON oauth_token USING btree (token);
+
+CREATE TABLE route (
+ domain text NOT NULL,
+ server_host text NOT NULL,
+ node text NOT NULL,
+ pid text NOT NULL,
+ local_hint text NOT NULL
+);
+
+CREATE UNIQUE INDEX i_route ON route USING btree (domain, server_host, node, pid);
+CREATE INDEX i_route_domain ON route USING btree (domain);