diff --git a/migrations/2019-05-14-165316_index_crate_name_for_like/down.sql b/migrations/2019-05-14-165316_index_crate_name_for_like/down.sql new file mode 100644 index 00000000000..002913fc445 --- /dev/null +++ b/migrations/2019-05-14-165316_index_crate_name_for_like/down.sql @@ -0,0 +1,2 @@ +DROP INDEX index_crates_name_tgrm; +DROP EXTENSION pg_trgm; diff --git a/migrations/2019-05-14-165316_index_crate_name_for_like/up.sql b/migrations/2019-05-14-165316_index_crate_name_for_like/up.sql new file mode 100644 index 00000000000..f188a9cd166 --- /dev/null +++ b/migrations/2019-05-14-165316_index_crate_name_for_like/up.sql @@ -0,0 +1,2 @@ +CREATE EXTENSION pg_trgm; +CREATE INDEX index_crates_name_tgrm ON crates USING gin (canon_crate_name(name) gin_trgm_ops);