summaryrefslogtreecommitdiff
path: root/sql/lite.sql
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2016-02-19 16:15:11 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2016-02-19 16:38:43 +0300
commit4b0860e7debf0326fac0cc93fbfedd202bf2f6d1 (patch)
treec5e892ffbafce286472ef470c5b53285bc7de824 /sql/lite.sql
parentFix format_result so get_room_options command works again after aa5caa3 (diff)
Make it possible to define 'sm_db_type' per virtual host
Diffstat (limited to 'sql/lite.sql')
-rw-r--r--sql/lite.sql14
1 files changed, 14 insertions, 0 deletions
diff --git a/sql/lite.sql b/sql/lite.sql
index 5132c917..0cf7ff41 100644
--- a/sql/lite.sql
+++ b/sql/lite.sql
@@ -296,3 +296,17 @@ CREATE TABLE archive_prefs (
never text NOT NULL,
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
);
+
+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_sm_sid ON sm(usec, pid);
+CREATE INDEX i_sm_node ON sm(node);
+CREATE INDEX i_sm_username ON sm(username);