Release: weekly deploy

This commit is contained in:
Danila Khodjaef
2026-07-15 12:10:57 +03:00
parent ca58c43648
commit a2c27ea526
3 changed files with 31 additions and 14 deletions
+5 -2
View File
@@ -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 $$