Trigramm-Erweiterung installieren & Trigramm-Indizes anlegen
authorMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 10 Oct 2017 09:22:57 +0000 (11:22 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 10 Oct 2017 10:47:34 +0000 (12:47 +0200)
sql/Pg-upgrade2/trigram_extension.sql [new file with mode: 0644]
sql/Pg-upgrade2/trigram_indices.sql
sql/Pg-upgrade2/trigram_indices_webshop.sql

diff --git a/sql/Pg-upgrade2/trigram_extension.sql b/sql/Pg-upgrade2/trigram_extension.sql
new file mode 100644 (file)
index 0000000..3097740
--- /dev/null
@@ -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;
index e83855b..d240d80 100644 (file)
@@ -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);
index 24270d8..399e8df 100644 (file)
@@ -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);