From cf9b67efb73db953d1d21bdaf483d7effc278234 Mon Sep 17 00:00:00 2001 From: evazion Date: Sun, 16 Apr 2017 21:05:15 -0500 Subject: [PATCH] db/structure.sql: add index_pools_on_name_trgm migration. --- db/structure.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/db/structure.sql b/db/structure.sql index bd70439b7..17d4b42cb 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -6805,7 +6805,7 @@ CREATE INDEX index_pools_on_name ON pools USING btree (name); -- Name: index_pools_on_name_trgm; Type: INDEX; Schema: public; Owner: - -- -CREATE INDEX index_pools_on_name_trgm ON pools USING gin (name gin_trgm_ops); +CREATE INDEX index_pools_on_name_trgm ON pools USING gin (lower((name)::text) gin_trgm_ops); -- @@ -7581,3 +7581,5 @@ INSERT INTO schema_migrations (version) VALUES ('20170413000209'); INSERT INTO schema_migrations (version) VALUES ('20170414005856'); +INSERT INTO schema_migrations (version) VALUES ('20170414233426'); +