--- /dev/null
+-- @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;
-- @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);
-- @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);