0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-02-18 07:34:17 +01:00

Fix missing repository id when migrating release attachments

This commit is contained in:
Lunny Xiao 2026-01-15 22:04:45 -08:00
parent 67e75f30a8
commit 275aec0c0e
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -318,6 +318,7 @@ func (g *GiteaLocalUploader) CreateReleases(ctx context.Context, releases ...*ba
}
attach := repo_model.Attachment{
UUID: uuid.New().String(),
RepoID: g.repo.ID,
Name: asset.Name,
DownloadCount: int64(*asset.DownloadCount),
Size: int64(*asset.Size),