Make it possible to define 'sm_db_type' per virtual host

This commit is contained in:
Evgeniy Khramtsov
2016-02-19 16:15:11 +03:00
parent eece6e69cb
commit 4b0860e7de
5 changed files with 67 additions and 30 deletions
+14
View File
@@ -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);