repo: delete rows in `lfs_object` table when delete repo (#6072)

pull/6075/head
ᴜɴᴋɴᴡᴏɴ 2020-04-06 18:44:06 +08:00 committed by GitHub
parent ee0ea2c5fc
commit ca2f7a7e16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1563,6 +1563,7 @@ func DeleteRepository(ownerID, repoID int64) error {
&ProtectBranchWhitelist{RepoID: repoID},
&Webhook{RepoID: repoID},
&HookTask{RepoID: repoID},
&LFSObject{RepoID: repoID},
); err != nil {
return fmt.Errorf("deleteBeans: %v", err)
}