aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2015-05-20 13:50:59 +0200
committerChristophe Romain <christophe.romain@process-one.net>2015-05-20 13:50:59 +0200
commitfcdb5197703c24a033209c0573c3e377ba3c0eb7 (patch)
tree9665e6bb8bdc972b0fed4089c37c69ceb1d1a8a3 /sql
parentMerge pull request #576 from processone/revert-570-fix_added_sm_table_to_pg (diff)
Add missing sm table (thanks to Rasim Kalimullin)(EJAB-1740)
Diffstat (limited to 'sql')
-rw-r--r--sql/pg.sql14
1 files changed, 14 insertions, 0 deletions
diff --git a/sql/pg.sql b/sql/pg.sql
index 8412c3c6b..736c4f932 100644
--- a/sql/pg.sql
+++ b/sql/pg.sql
@@ -288,3 +288,17 @@ 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);