mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	fix topic name length on database (#5493)
This commit is contained in:
		@@ -26,7 +26,7 @@ var topicPattern = regexp.MustCompile(`^[a-z0-9][a-z0-9-]*$`)
 | 
			
		||||
// Topic represents a topic of repositories
 | 
			
		||||
type Topic struct {
 | 
			
		||||
	ID          int64
 | 
			
		||||
	Name        string `xorm:"UNIQUE"`
 | 
			
		||||
	Name        string `xorm:"UNIQUE VARCHAR(25)"`
 | 
			
		||||
	RepoCount   int
 | 
			
		||||
	CreatedUnix util.TimeStamp `xorm:"INDEX created"`
 | 
			
		||||
	UpdatedUnix util.TimeStamp `xorm:"INDEX updated"`
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user