mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	added a note to the documentation regarding character limits of PostgreSQL
This commit is contained in:
		@@ -460,6 +460,15 @@ management commands as below.
 | 
				
			|||||||
    load data from an old database schema in SQLite into a newer database
 | 
					    load data from an old database schema in SQLite into a newer database
 | 
				
			||||||
    schema in PostgreSQL, you will run into trouble.
 | 
					    schema in PostgreSQL, you will run into trouble.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.. warning::
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    On some database fields, PostgreSQL enforces predefined limits on maximum
 | 
				
			||||||
 | 
					    length, whereas SQLite does not. The fields in question are the title of documents
 | 
				
			||||||
 | 
					    (128 characters), names of document types, tags and correspondents (128 characters),
 | 
				
			||||||
 | 
					    and filenames (1024 characters). If you have data in these fields that surpasses these
 | 
				
			||||||
 | 
					    limits, migration to PostgreSQL is not possible and will fail with an error.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
1.  Stop paperless, if it is running.
 | 
					1.  Stop paperless, if it is running.
 | 
				
			||||||
2.  Tell paperless to use PostgreSQL:
 | 
					2.  Tell paperless to use PostgreSQL:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user