From da9b0efd0a7e776eaaa3a446452ffe712ed45f93 Mon Sep 17 00:00:00 2001 From: kpcyrd Date: Thu, 4 Oct 2018 06:46:40 +0200 Subject: [PATCH] Create postgres index for search_vector --- .../migrations/2018-10-04-044412_search-index/down.sql | 1 + sn0int-registry/migrations/2018-10-04-044412_search-index/up.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 sn0int-registry/migrations/2018-10-04-044412_search-index/down.sql create mode 100644 sn0int-registry/migrations/2018-10-04-044412_search-index/up.sql diff --git a/sn0int-registry/migrations/2018-10-04-044412_search-index/down.sql b/sn0int-registry/migrations/2018-10-04-044412_search-index/down.sql new file mode 100644 index 00000000..825c02ae --- /dev/null +++ b/sn0int-registry/migrations/2018-10-04-044412_search-index/down.sql @@ -0,0 +1 @@ +DROP INDEX modules_search_idx; diff --git a/sn0int-registry/migrations/2018-10-04-044412_search-index/up.sql b/sn0int-registry/migrations/2018-10-04-044412_search-index/up.sql new file mode 100644 index 00000000..28a028d5 --- /dev/null +++ b/sn0int-registry/migrations/2018-10-04-044412_search-index/up.sql @@ -0,0 +1 @@ +CREATE INDEX modules_search_idx ON modules USING GIN(search_vector);