mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 09:44:21 +00:00 
			
		
		
		
	#1626 default db_type
This commit is contained in:
		@@ -104,10 +104,14 @@ func Install(ctx *middleware.Context) {
 | 
			
		||||
	form.DbName = models.DbCfg.Name
 | 
			
		||||
	form.DbPath = models.DbCfg.Path
 | 
			
		||||
 | 
			
		||||
	ctx.Data["CurDbOption"] = "MySQL"
 | 
			
		||||
	switch models.DbCfg.Type {
 | 
			
		||||
	case "postgres":
 | 
			
		||||
		ctx.Data["CurDbOption"] = "PostgreSQL"
 | 
			
		||||
	case "sqlite3":
 | 
			
		||||
		if models.EnableSQLite3 {
 | 
			
		||||
			ctx.Data["CurDbOption"] = "SQLite3" // Default when enabled.
 | 
			
		||||
	} else {
 | 
			
		||||
		ctx.Data["CurDbOption"] = "MySQL"
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Application general settings
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user