From 920ec8e74be775266f4e4bf3df5aa1b10bbbe0c7 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Thu, 25 Sep 2025 20:56:53 +0200 Subject: [PATCH] fixed missing pg extensions --- ...hed_0227_space_ai_default_provider_and_more.py | 4 +++- cookbook/migrations/0230_auto_20250925_2056.py | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 cookbook/migrations/0230_auto_20250925_2056.py diff --git a/cookbook/migrations/0001_squashed_0227_space_ai_default_provider_and_more.py b/cookbook/migrations/0001_squashed_0227_space_ai_default_provider_and_more.py index b7a6ad9cc..23d6349e7 100644 --- a/cookbook/migrations/0001_squashed_0227_space_ai_default_provider_and_more.py +++ b/cookbook/migrations/0001_squashed_0227_space_ai_default_provider_and_more.py @@ -16,7 +16,7 @@ import uuid from django.conf import settings from django.db import migrations, models from cookbook.models import SearchFields - +from django.contrib.postgres.operations import TrigramExtension, UnaccentExtension def allSearchFields(): return list(SearchFields.objects.values_list('id', flat=True)) @@ -141,6 +141,8 @@ class Migration(migrations.Migration): ] operations = [ + TrigramExtension(), + UnaccentExtension(), migrations.RunPython(create_default_groups), migrations.CreateModel( name='AiProvider', diff --git a/cookbook/migrations/0230_auto_20250925_2056.py b/cookbook/migrations/0230_auto_20250925_2056.py new file mode 100644 index 000000000..ad72588fe --- /dev/null +++ b/cookbook/migrations/0230_auto_20250925_2056.py @@ -0,0 +1,15 @@ +# Generated by Django 5.2.6 on 2025-09-25 18:56 + +from django.db import migrations +from django.contrib.postgres.operations import TrigramExtension, UnaccentExtension + +class Migration(migrations.Migration): + + dependencies = [ + ('cookbook', '0229_alter_ailog_options_alter_aiprovider_options_and_more'), + ] + + operations = [ + TrigramExtension(), + UnaccentExtension(), + ]