diff options
Diffstat (limited to 'sql')
-rw-r--r-- | sql/mysql.sql | 14 |
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); |