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),
 | 
			
		||||
        title=TEXT(sortable=True),
 | 
			
		||||
        content=TEXT(),
 | 
			
		||||
        asn=NUMERIC(sortable=True),
 | 
			
		||||
        asn=NUMERIC(sortable=True, signed=False),
 | 
			
		||||
        correspondent=TEXT(sortable=True),
 | 
			
		||||
        correspondent_id=NUMERIC(),
 | 
			
		||||
        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
 | 
			
		||||
from django.db import migrations, models
 | 
			
		||||
@ -21,7 +21,7 @@ class Migration(migrations.Migration):
 | 
			
		||||
                null=True,
 | 
			
		||||
                unique=True,
 | 
			
		||||
                validators=[
 | 
			
		||||
                    django.core.validators.MaxValueValidator(2147483647),
 | 
			
		||||
                    django.core.validators.MaxValueValidator(4294967295),
 | 
			
		||||
                    django.core.validators.MinValueValidator(0),
 | 
			
		||||
                ],
 | 
			
		||||
                verbose_name="archive serial number",
 | 
			
		||||
 | 
			
		||||
@ -236,7 +236,7 @@ class Document(models.Model):
 | 
			
		||||
        unique=True,
 | 
			
		||||
        db_index=True,
 | 
			
		||||
        validators=[
 | 
			
		||||
            MaxValueValidator(2147483647),
 | 
			
		||||
            MaxValueValidator(0xFF_FF_FF_FF),
 | 
			
		||||
            MinValueValidator(0),
 | 
			
		||||
        ],
 | 
			
		||||
        help_text=_(
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user