mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-04 03:27:12 -05:00 
			
		
		
		
	Use 32bit integer for asn, unsigned Whoosh NUMERIC field
Co-Authored-By: Trenton H <797416+stumpylog@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									3c2df48a1a
								
							
						
					
					
						commit
						99c2442b28
					
				@ -34,7 +34,7 @@ def get_schema():
 | 
				
			|||||||
        id=NUMERIC(stored=True, unique=True),
 | 
					        id=NUMERIC(stored=True, unique=True),
 | 
				
			||||||
        title=TEXT(sortable=True),
 | 
					        title=TEXT(sortable=True),
 | 
				
			||||||
        content=TEXT(),
 | 
					        content=TEXT(),
 | 
				
			||||||
        asn=NUMERIC(sortable=True),
 | 
					        asn=NUMERIC(sortable=True, signed=False),
 | 
				
			||||||
        correspondent=TEXT(sortable=True),
 | 
					        correspondent=TEXT(sortable=True),
 | 
				
			||||||
        correspondent_id=NUMERIC(),
 | 
					        correspondent_id=NUMERIC(),
 | 
				
			||||||
        has_correspondent=BOOLEAN(),
 | 
					        has_correspondent=BOOLEAN(),
 | 
				
			||||||
 | 
				
			|||||||
@ -1,4 +1,4 @@
 | 
				
			|||||||
# Generated by Django 4.1.4 on 2023-01-24 05:09
 | 
					# Generated by Django 4.1.4 on 2023-01-24 17:56
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import django.core.validators
 | 
					import django.core.validators
 | 
				
			||||||
from django.db import migrations, models
 | 
					from django.db import migrations, models
 | 
				
			||||||
@ -21,7 +21,7 @@ class Migration(migrations.Migration):
 | 
				
			|||||||
                null=True,
 | 
					                null=True,
 | 
				
			||||||
                unique=True,
 | 
					                unique=True,
 | 
				
			||||||
                validators=[
 | 
					                validators=[
 | 
				
			||||||
                    django.core.validators.MaxValueValidator(2147483647),
 | 
					                    django.core.validators.MaxValueValidator(4294967295),
 | 
				
			||||||
                    django.core.validators.MinValueValidator(0),
 | 
					                    django.core.validators.MinValueValidator(0),
 | 
				
			||||||
                ],
 | 
					                ],
 | 
				
			||||||
                verbose_name="archive serial number",
 | 
					                verbose_name="archive serial number",
 | 
				
			||||||
 | 
				
			|||||||
@ -236,7 +236,7 @@ class Document(models.Model):
 | 
				
			|||||||
        unique=True,
 | 
					        unique=True,
 | 
				
			||||||
        db_index=True,
 | 
					        db_index=True,
 | 
				
			||||||
        validators=[
 | 
					        validators=[
 | 
				
			||||||
            MaxValueValidator(2147483647),
 | 
					            MaxValueValidator(0xFF_FF_FF_FF),
 | 
				
			||||||
            MinValueValidator(0),
 | 
					            MinValueValidator(0),
 | 
				
			||||||
        ],
 | 
					        ],
 | 
				
			||||||
        help_text=_(
 | 
					        help_text=_(
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user