mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	upgrade-zulip: Simplify PostgreSQL version check.
This is much simpler now that we do not support PostgreSQL 9.x.
This commit is contained in:
		
				
					committed by
					
						
						Alex Vandiver
					
				
			
			
				
	
			
			
			
						parent
						
							d5a39a6564
						
					
				
				
					commit
					afeb73e12a
				
			@@ -230,7 +230,7 @@ if os.path.exists("/etc/init.d/postgresql"):
 | 
			
		||||
            ]
 | 
			
		||||
        )
 | 
			
		||||
 | 
			
		||||
    if tuple(map(int, postgresql_version.split("."))) < (12,):
 | 
			
		||||
    if int(postgresql_version) < 12:
 | 
			
		||||
        logging.critical("Unsupported PostgreSQL version: %s", postgresql_version)
 | 
			
		||||
        logging.info(
 | 
			
		||||
            "Please upgrade to PostgreSQL 12 or newer first.\n"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user