]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: include db_index caveat in squashed migrations (#8292)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Fri, 15 Nov 2024 15:42:10 +0000 (07:42 -0800)
committerGitHub <noreply@github.com>
Fri, 15 Nov 2024 15:42:10 +0000 (07:42 -0800)
src/documents/migrations/0015_add_insensitive_to_match_squashed_0018_auto_20170715_1712.py

index 4463a953d733663be2fb5ed169ce13fc97b0aedc..bfa897601214aa03f80d0a52727720d7f21b0cfe 100644 (file)
@@ -1,6 +1,7 @@
 # Generated by Django 4.2.13 on 2024-06-28 17:57
 
 import django.db.models.deletion
+from django.conf import settings
 from django.db import migrations
 from django.db import models
 
@@ -43,7 +44,7 @@ class Migration(migrations.Migration):
             name="content",
             field=models.TextField(
                 blank=True,
-                db_index=True,
+                db_index=("mysql" not in settings.DATABASES["default"]["ENGINE"]),
                 help_text="The raw, text-only data of the document.  This field is primarily used for searching.",
             ),
         ),