File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ func AddRepositoryLicenses(x *xorm.Engine) error {
1414		ID           int64  `xorm:"pk autoincr"` 
1515		RepoID       int64  `xorm:"UNIQUE(s) NOT NULL"` 
1616		CommitID     string 
17- 		License      string              `xorm:"VARCHAR UNIQUE(s) NOT NULL"` 
17+ 		License      string              `xorm:"VARCHAR(255)  UNIQUE(s) NOT NULL"` 
1818		CreatedUnix  timeutil.TimeStamp  `xorm:"INDEX CREATED"` 
1919		UpdatedUnix  timeutil.TimeStamp  `xorm:"INDEX UPDATED"` 
2020	}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ type RepoLicense struct { //revive:disable-line:exported
1818	ID           int64  `xorm:"pk autoincr"` 
1919	RepoID       int64  `xorm:"UNIQUE(s) NOT NULL"` 
2020	CommitID     string 
21- 	License      string              `xorm:"VARCHAR UNIQUE(s) NOT NULL"` 
21+ 	License      string              `xorm:"VARCHAR(255)  UNIQUE(s) NOT NULL"` 
2222	CreatedUnix  timeutil.TimeStamp  `xorm:"INDEX CREATED"` 
2323	UpdatedUnix  timeutil.TimeStamp  `xorm:"INDEX UPDATED"` 
2424}
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments