mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Add Index to pull_auto_merge.doer_id (#27811)
Reported at https://codeberg.org/forgejo/forgejo/issues/1677
This column is used by
[deleteUser](f089be91da/services/user/delete.go (L90)).
Note: This PR contains a Migration, so we can't backport it to 1.21.
			
			
This commit is contained in:
		| @@ -17,7 +17,7 @@ import ( | ||||
| type AutoMerge struct { | ||||
| 	ID          int64                 `xorm:"pk autoincr"` | ||||
| 	PullID      int64                 `xorm:"UNIQUE"` | ||||
| 	DoerID      int64                 `xorm:"NOT NULL"` | ||||
| 	DoerID      int64                 `xorm:"INDEX NOT NULL"` | ||||
| 	Doer        *user_model.User      `xorm:"-"` | ||||
| 	MergeStyle  repo_model.MergeStyle `xorm:"varchar(30)"` | ||||
| 	Message     string                `xorm:"LONGTEXT"` | ||||
|   | ||||
		Reference in New Issue
	
	Block a user