diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-04-06 18:44:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-06 18:44:06 +0800 |
commit | ca2f7a7e1610fd8e99649dc1ed2058c2f362c57d (patch) | |
tree | ef2473ebfae045f5b01458382de582bdfa5203fd /internal/db | |
parent | ee0ea2c5fc9f470512acf3f15834f14f8df9d737 (diff) |
repo: delete rows in `lfs_object` table when delete repo (#6072)
Diffstat (limited to 'internal/db')
-rw-r--r-- | internal/db/repo.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/db/repo.go b/internal/db/repo.go index a7d54bb9..150942c1 100644 --- a/internal/db/repo.go +++ b/internal/db/repo.go @@ -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) } |