Merge "Fix glance db migration failed on 031"
This commit is contained in:
commit
697db03ed6
@ -33,11 +33,6 @@ def upgrade(migrate_engine):
|
|||||||
.where(image_locations.c.value == il.c.value)
|
.where(image_locations.c.value == il.c.value)
|
||||||
.where(image_locations.c.meta_data == il.c.meta_data)
|
.where(image_locations.c.meta_data == il.c.meta_data)
|
||||||
.where(image_locations.c.deleted == False)))
|
.where(image_locations.c.deleted == False)))
|
||||||
.where((sql.select([func.count(image_locations.c.id)])
|
|
||||||
.where(image_locations.c.image_id == il.c.image_id)
|
|
||||||
.where(image_locations.c.value == il.c.value)
|
|
||||||
.where(image_locations.c.meta_data == il.c.meta_data)
|
|
||||||
.where(image_locations.c.deleted == False)) > 1)
|
|
||||||
.where(il.c.deleted == False)
|
.where(il.c.deleted == False)
|
||||||
.execute()
|
.execute()
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user