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:
authorMatthias Rieber <matthias@zu-con.org>2015-05-17 18:45:49 +0300
committerMatthias Rieber <matthias@zu-con.org>2015-05-17 22:38:33 +0300
commit0800a9733ca45c84ebd8be2988678b4dc29bbc5f (patch)
treede56b95ac025c79ce540f16c22c437bc9ba854d1 /sql/pg.sql
parent084d0c4efe9e22c0dcfaf8a9132ee6bda21c8e99 (diff)
pg - added sm table
Diffstat (limited to 'sql/pg.sql')
-rw-r--r--sql/pg.sql15
1 files changed, 15 insertions, 0 deletions
diff --git a/sql/pg.sql b/sql/pg.sql
index 8412c3c6b..966614f48 100644
--- a/sql/pg.sql
+++ b/sql/pg.sql
@@ -288,3 +288,18 @@ CREATE TABLE caps_features (
);
CREATE INDEX i_caps_features_node_subnode ON caps_features USING btree (node, subnode);
+
+CREATE TABLE sm (
+ usec bigint NOT NULL,
+ pid text NOT NULL,
+ node text NOT NULL,
+ username text NOT NULL,
+ resource text NOT NULL,
+ priority text NOT NULL,
+ info text NOT NULL
+);
+
+CREATE UNIQUE INDEX i_sid ON sm USING btree (usec, pid);
+CREATE INDEX i_node ON sm USING btree (node);
+CREATE INDEX i_username ON sm USING btree (username);
+