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

This commit is contained in:
ᴜɴᴋɴᴡᴏɴ
2020-04-06 18:44:06 +08:00
committed by GitHub
parent ee0ea2c5fc
commit ca2f7a7e16

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)
}