mirror of https://github.com/cloudreve/Cloudreve
				
				
				
			feat(db): add mariadb alias (#2560)
							parent
							
								
									b11188fa50
								
							
						
					
					
						commit
						d1bbfd4bc4
					
				| 
						 | 
				
			
			@ -28,6 +28,11 @@ func Init() error {
 | 
			
		|||
	if confDBType == "sqlite3" {
 | 
			
		||||
		confDBType = "sqlite"
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	// 兼容 "mariadb" 数据库
 | 
			
		||||
	if confDBType == "mariadb" {
 | 
			
		||||
		confDBType = "mysql"
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	switch confDBType {
 | 
			
		||||
	case "UNSET", "sqlite":
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue