add index

This commit is contained in:
Tomas Kopecek 2018-01-11 10:06:12 +01:00 committed by Mike McLean
parent a72d9a200b
commit 0f8238dd33
2 changed files with 2 additions and 0 deletions

View file

@ -168,6 +168,7 @@ CREATE TABLE host_config (
PRIMARY KEY (create_event, host_id),
UNIQUE (host_id, active)
) WITHOUT OIDS;
CREATE INDEX host_config_by_active_and_enabled ON host_config(active, enabled)
CREATE TABLE host_channels (
host_id INTEGER NOT NULL REFERENCES host(id),