GORM Playground Link
https://github.com/go-gorm/playground/pull/1
Description
AutoMigrate会创建很多个同字段的索引,如下图所示 AutoMigrate will create many indexes of the same field, as shown in the figure below
Comment From: github-actions[bot]
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking ✨
Comment From: a631807682
duplicated of https://github.com/go-gorm/gorm/issues/6224
Comment From: lixh00
duplicated of #6224
The maximum number of MySQL single-table indexes is 64. This BUG will keep creating until all quotas are used up and AutoMigrate can no longer be used.
MySQL单表索引数最大为64个,这个BUG会一直创建,直到用完所有额度导致无法再AutoMigrate。