Commit a1707d89 authored by Michael Tremer's avatar Michael Tremer

importer: Add search index to announcements table

Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent fc1190aa
......@@ -152,6 +152,7 @@ class CLI(object):
last_seen_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP);
CREATE UNIQUE INDEX IF NOT EXISTS announcements_networks ON announcements(network);
CREATE INDEX IF NOT EXISTS announcements_family ON announcements(family(network));
CREATE INDEX IF NOT EXISTS announcements_search ON announcements USING GIST(network inet_ops);
-- autnums
CREATE TABLE IF NOT EXISTS autnums(number bigint, name text NOT NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment