diff --git a/app/general/migrations/0012_alter_documentfile_search_vector.py b/app/general/migrations/0012_alter_documentfile_search_vector.py index 3e5bc8ec..2bde464c 100644 --- a/app/general/migrations/0012_alter_documentfile_search_vector.py +++ b/app/general/migrations/0012_alter_documentfile_search_vector.py @@ -1,11 +1,8 @@ -# Generated by Django 5.0.6 on 2024-07-24 12:00 - import django.contrib.postgres.search from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ ('general', '0011_alter_documentfile_options_and_more'), ] @@ -14,14 +11,22 @@ class Migration(migrations.Migration): migrations.RemoveField( model_name='documentfile', name='search_vector', - ), # also deletes `search_vector_trigger` and general_doc_search__752b22_gin + ), # also deletes `search_vector_trigger` and general_doc_search__752b22_gin migrations.AddField( model_name='documentfile', name='search_vector', - field=models.GeneratedField(db_persist=True, expression=django.contrib.postgres.search.CombinedSearchVector(django.contrib.postgres.search.CombinedSearchVector(django.contrib.postgres.search.SearchVector('title', config='english', weight='A'), '||', django.contrib.postgres.search.SearchVector('description', config='english', weight='B'), django.contrib.postgres.search.SearchConfig('english')), '||', django.contrib.postgres.search.SearchVector('document_data', config='english', weight='C'), django.contrib.postgres.search.SearchConfig('english')), null=True, output_field=django.contrib.postgres.search.SearchVectorField()), + field=models.GeneratedField(db_persist=True, expression=django.contrib.postgres.search.CombinedSearchVector( + django.contrib.postgres.search.CombinedSearchVector( + django.contrib.postgres.search.SearchVector('title', config='english', weight='A'), '||', + django.contrib.postgres.search.SearchVector('description', config='english', weight='B'), + django.contrib.postgres.search.SearchConfig('english')), '||', + django.contrib.postgres.search.SearchVector('document_data', config='english', weight='C'), + django.contrib.postgres.search.SearchConfig('english')), null=True, + output_field=django.contrib.postgres.search.SearchVectorField()), ), migrations.AddIndex( model_name='documentfile', - index=django.contrib.postgres.indexes.GinIndex(fields=['search_vector'], name='general_doc_search__752b22_gin'), + index=django.contrib.postgres.indexes.GinIndex(fields=['search_vector'], + name='general_doc_search__752b22_gin'), ), ]