mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Fix: include db_index caveat in squashed migrations (#8292)
This commit is contained in:
		@@ -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.",
 | 
			
		||||
            ),
 | 
			
		||||
        ),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user