Release: weekly deploy
This commit is contained in:
+5
-2
@@ -19,8 +19,11 @@ CREATE INDEX IF NOT EXISTS entity_translations_lookup_idx
|
||||
CREATE INDEX IF NOT EXISTS entity_translations_locale_field_idx
|
||||
ON entity_translations (locale, field_name);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS entity_translations_value_lower_idx
|
||||
ON entity_translations (locale, lower(value));
|
||||
-- Search only matches name/title aliases; exclude long prose (bio_full) from btree index.
|
||||
DROP INDEX IF EXISTS entity_translations_value_lower_idx;
|
||||
CREATE INDEX IF NOT EXISTS entity_translations_search_alias_idx
|
||||
ON entity_translations (locale, lower(value))
|
||||
WHERE field_name IN ('name', 'title') AND char_length(value) <= 512;
|
||||
|
||||
CREATE OR REPLACE FUNCTION entity_translations_touch_updated_at()
|
||||
RETURNS TRIGGER AS $$
|
||||
|
||||
Reference in New Issue
Block a user