mirror of
				https://github.com/cloudreve/cloudreve.git
				synced 2025-10-31 08:39:10 +08:00 
			
		
		
		
	feat(db): add mariadb alias (#2560)
This commit is contained in:
		| @ -29,6 +29,11 @@ func Init() error { | |||||||
| 		confDBType = "sqlite" | 		confDBType = "sqlite" | ||||||
| 	} | 	} | ||||||
| 	 | 	 | ||||||
|  | 	// 兼容 "mariadb" 数据库 | ||||||
|  | 	if confDBType == "mariadb" { | ||||||
|  | 		confDBType = "mysql" | ||||||
|  | 	} | ||||||
|  |  | ||||||
| 	switch confDBType { | 	switch confDBType { | ||||||
| 	case "UNSET", "sqlite": | 	case "UNSET", "sqlite": | ||||||
| 		// 未指定数据库或者明确指定为 sqlite 时,使用 SQLite 数据库 | 		// 未指定数据库或者明确指定为 sqlite 时,使用 SQLite 数据库 | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Anye
					Anye