mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	Move the unique key on checksums to migration 15
This shouldn't affect anyone, since this migration is pretty old, but it allows people using PostgreSQL to actually run Paperless.
This commit is contained in:
		
							parent
							
								
									090565d84c
								
							
						
					
					
						commit
						d17497fd5b
					
				@ -158,9 +158,4 @@ class Migration(migrations.Migration):
 | 
			
		||||
            name='modified',
 | 
			
		||||
            field=models.DateTimeField(auto_now=True, db_index=True),
 | 
			
		||||
        ),
 | 
			
		||||
        migrations.AlterField(
 | 
			
		||||
            model_name='document',
 | 
			
		||||
            name='checksum',
 | 
			
		||||
            field=models.CharField(editable=False, help_text='The checksum of the original document (before it was encrypted).  We use this to prevent duplicate document imports.', max_length=32, unique=True),
 | 
			
		||||
        ),
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
@ -12,6 +12,11 @@ class Migration(migrations.Migration):
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    operations = [
 | 
			
		||||
        migrations.AlterField(
 | 
			
		||||
            model_name='document',
 | 
			
		||||
            name='checksum',
 | 
			
		||||
            field=models.CharField(editable=False, help_text='The checksum of the original document (before it was encrypted).  We use this to prevent duplicate document imports.', max_length=32, unique=True),
 | 
			
		||||
        ),
 | 
			
		||||
        migrations.AddField(
 | 
			
		||||
            model_name='correspondent',
 | 
			
		||||
            name='is_insensitive',
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user