sql.tenants.V2__create_search_indexes.sql Maven / Gradle / Ivy
CREATE EXTENSION IF NOT EXISTS pg_trgm with schema izanami;
CREATE EXTENSION IF NOT EXISTS fuzzystrmatch with schema izanami;
CREATE INDEX trgm_idx_feature ON features USING gist (name izanami.gist_trgm_ops, description izanami.gist_trgm_ops);
CREATE INDEX trgm_idx_projects ON projects USING gist (name izanami.gist_trgm_ops, description izanami.gist_trgm_ops);
CREATE INDEX trgm_idx_tags ON tags USING gist (name izanami.gist_trgm_ops, description izanami.gist_trgm_ops);
CREATE INDEX trgm_idx_apikeys ON apikeys USING gist (name izanami.gist_trgm_ops, description izanami.gist_trgm_ops);
CREATE INDEX trgm_idx_webhooks ON webhooks USING gist (name izanami.gist_trgm_ops, description izanami.gist_trgm_ops);
CREATE INDEX trgm_idx_globalcontexts ON global_feature_contexts USING gist (name izanami.gist_trgm_ops);
CREATE INDEX trgm_idx_featurecontexts ON feature_contexts USING gist (name izanami.gist_trgm_ops);