mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Set MySQL rowtype to dynamic for new tables (#10833)
* Set mysql rowtype to dynamic for new tables * Update models.go
This commit is contained in:
		@@ -142,6 +142,9 @@ func getEngine() (*xorm.Engine, error) {
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	if setting.Database.Type == "mysql" {
 | 
			
		||||
		engine.Dialect().SetParams(map[string]string{"rowFormat": "DYNAMIC"})
 | 
			
		||||
	}
 | 
			
		||||
	engine.SetSchema(setting.Database.Schema)
 | 
			
		||||
	return engine, nil
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user