diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cb0ef777..86cf1aba9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ and this project adheres to - ✨(backend) support creating subdoc from file #1987 +### Fixed + +- 🐛(docs) run migration 0027 without superuser role + ## [v5.1.0] - 2026-05-11 diff --git a/src/backend/core/migrations/0027_auto_20251120_0956.py b/src/backend/core/migrations/0027_auto_20251120_0956.py index fe795ff5f..615a66ce2 100644 --- a/src/backend/core/migrations/0027_auto_20251120_0956.py +++ b/src/backend/core/migrations/0027_auto_20251120_0956.py @@ -11,15 +11,10 @@ class Migration(migrations.Migration): operations = [ migrations.RunSQL( sql=""" - CREATE OR REPLACE FUNCTION public.immutable_unaccent(regdictionary, text) - RETURNS text - LANGUAGE c IMMUTABLE PARALLEL SAFE STRICT AS - '$libdir/unaccent', 'unaccent_dict'; - CREATE OR REPLACE FUNCTION public.f_unaccent(text) RETURNS text - LANGUAGE sql IMMUTABLE PARALLEL SAFE STRICT - RETURN public.immutable_unaccent(regdictionary 'public.unaccent', $1); + LANGUAGE sql IMMUTABLE PARALLEL SAFE strict + return unaccent($1); CREATE INDEX IF NOT EXISTS user_email_unaccent_trgm_idx ON impress_user