mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix bug on release publisherid migrations (#13410)
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
This commit is contained in:
		@@ -68,7 +68,10 @@ func fixPublisherIDforTagReleases(x *xorm.Engine) error {
 | 
				
			|||||||
			return err
 | 
								return err
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if err := sess.Limit(batchSize, start).Asc("repo_id", "id").Where("is_tag=?", true).Find(&releases); err != nil {
 | 
							if err := sess.Limit(batchSize, start).
 | 
				
			||||||
 | 
								Where("publisher_id = 0").
 | 
				
			||||||
 | 
								Asc("repo_id", "id").Where("is_tag=?", true).
 | 
				
			||||||
 | 
								Find(&releases); err != nil {
 | 
				
			||||||
			return err
 | 
								return err
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user