aboutsummaryrefslogtreecommitdiff
path: root/sql/mysql.sql
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2015-03-09 16:41:13 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2015-03-09 16:41:13 +0300
commit72d9b099c6a8c73c691cb45ba9e422d69fb55db8 (patch)
treed5cd99bd0315e6221ab5ed57fbf485e57b909870 /sql/mysql.sql
parentAdd forgotten header file (diff)
Make it possible to use SQL as an SM backend
Diffstat (limited to '')
-rw-r--r--sql/mysql.sql14
1 files changed, 14 insertions, 0 deletions
diff --git a/sql/mysql.sql b/sql/mysql.sql
index 7f96905c0..64f54ba70 100644
--- a/sql/mysql.sql
+++ b/sql/mysql.sql
@@ -278,3 +278,17 @@ CREATE TABLE caps_features (
) ENGINE=InnoDB CHARACTER SET utf8;
CREATE INDEX i_caps_features_node_subnode ON caps_features(node(75), subnode(75));
+
+CREATE TABLE sm (
+ usec bigint NOT NULL,
+ pid text NOT NULL,
+ node text NOT NULL,
+ username varchar(250) NOT NULL,
+ resource varchar(250) NOT NULL,
+ priority text NOT NULL,
+ info text NOT NULL
+) ENGINE=InnoDB CHARACTER SET utf8;
+
+CREATE UNIQUE INDEX i_sid ON sm(usec, pid(75));
+CREATE INDEX i_node ON sm(node(75));
+CREATE INDEX i_username ON sm(username);