mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Recommend/convert to use case-sensitive collation for MySQL/MSSQL (#28662)
Mainly for MySQL/MSSQL. It is important for Gitea to use case-sensitive database charset collation. If the database is using a case-insensitive collation, Gitea will show startup error/warning messages, and show the errors/warnings on the admin panel's Self-Check page. Make `gitea doctor convert` work for MySQL to convert the collations of database & tables & columns. * Fix #28131 ## ⚠️ BREAKING ⚠️ It is not quite breaking, but it's highly recommended to convert the database&table&column to a consistent and case-sensitive collation.
This commit is contained in:
		| @@ -182,6 +182,8 @@ func InitEngineWithMigration(ctx context.Context, migrateFunc func(*xorm.Engine) | ||||
| 		return err | ||||
| 	} | ||||
|  | ||||
| 	preprocessDatabaseCollation(x) | ||||
|  | ||||
| 	// We have to run migrateFunc here in case the user is re-running installation on a previously created DB. | ||||
| 	// If we do not then table schemas will be changed and there will be conflicts when the migrations run properly. | ||||
| 	// | ||||
|   | ||||
		Reference in New Issue
	
	Block a user