Remove an unnecessary outer join
This commit is contained in:
parent
8f80d7064b
commit
fd1e5f2407
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ def set_image_storage_metadata(docker_image_id, namespace_name, repository_name,
|
|||
.join(Repository)
|
||||
.join(Namespace, on=(Repository.namespace_user == Namespace.id))
|
||||
.switch(Image)
|
||||
.join(ImageStorage, JOIN_LEFT_OUTER)
|
||||
.join(ImageStorage)
|
||||
.where(Repository.name == repository_name, Namespace.username == namespace_name,
|
||||
Image.docker_image_id == docker_image_id))
|
||||
|
||||
|
|
Reference in a new issue