mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-09 15:05:50 +01:00
(refs #578)Add migration for repositories which have removed parent or origin repository.
This commit is contained in:
@@ -137,7 +137,7 @@ trait RepositoryService { self: AccountService =>
|
||||
WebHooks .filter(_.byRepository(userName, repositoryName)).delete
|
||||
Repositories .filter(_.byRepository(userName, repositoryName)).delete
|
||||
|
||||
// Update ORIGINAL_USER_NAME and ORIGINAL_REPOSITORY_NAME
|
||||
// Update ORIGIN_USER_NAME and ORIGIN_REPOSITORY_NAME
|
||||
Repositories
|
||||
.filter { x => (x.originUserName === userName.bind) && (x.originRepositoryName === repositoryName.bind) }
|
||||
.map { x => (x.userName, x.repositoryName) }
|
||||
|
||||
Reference in New Issue
Block a user