From: Moritz Bunkus Date: Tue, 10 Oct 2017 09:22:57 +0000 (+0200) Subject: Trigramm-Erweiterung installieren & Trigramm-Indizes anlegen X-Git-Tag: release-3.5.4~721 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b08b354b26487b5fdb3bcb08602e33ddbb1ac255;p=kivitendo-erp.git Trigramm-Erweiterung installieren & Trigramm-Indizes anlegen --- diff --git a/sql/Pg-upgrade2/trigram_extension.sql b/sql/Pg-upgrade2/trigram_extension.sql new file mode 100644 index 000000000..309774078 --- /dev/null +++ b/sql/Pg-upgrade2/trigram_extension.sql @@ -0,0 +1,7 @@ +-- @tag: trigram_extension +-- @description: Trigram-Index-Erweiterung installieren +-- @depends: release_3_5_0 +-- @ignore: 0 +-- @superuser_privileges: 1 + +CREATE EXTENSION IF NOT EXISTS pg_trgm; diff --git a/sql/Pg-upgrade2/trigram_indices.sql b/sql/Pg-upgrade2/trigram_indices.sql index e83855b5f..d240d80a7 100644 --- a/sql/Pg-upgrade2/trigram_indices.sql +++ b/sql/Pg-upgrade2/trigram_indices.sql @@ -1,8 +1,6 @@ -- @tag: trigram_indices -- @description: Trigram Indizes für häufig durchsuchte Spalten --- @depends: release_3_5_0 shops --- @ignore: 1 - +-- @depends: release_3_5_0 trigram_extension CREATE INDEX customer_customernumber_gin_trgm_idx ON customer USING gin (customernumber gin_trgm_ops); CREATE INDEX customer_name_gin_trgm_idx ON customer USING gin (name gin_trgm_ops); diff --git a/sql/Pg-upgrade2/trigram_indices_webshop.sql b/sql/Pg-upgrade2/trigram_indices_webshop.sql index 24270d852..399e8dfd6 100644 --- a/sql/Pg-upgrade2/trigram_indices_webshop.sql +++ b/sql/Pg-upgrade2/trigram_indices_webshop.sql @@ -1,6 +1,5 @@ -- @tag: trigram_indices_webshop -- @description: Trigram Indizes für Fuzzysearch bei der Kundensuche im Shopmodul --- @depends: release_3_5_0 shops --- @ignore: 1 +-- @depends: release_3_5_0 trigram_extension CREATE INDEX customer_street_gin_trgm_idx ON customer USING gin (street gin_trgm_ops);