72eac7c8f2
This patch solves two problems: 1. When use "zun image-show" to see its details, we donot know which host the image is on. 2. The unique constraint of image table in db is "repo" and "tag". If we pull ubuntu:test image on host1, an error will occur when we pull ubuntu:test on host2. Because the repo:tag that is the unique constrainthas has generated in db. This patch adds host to image table and changes the unique constraint to 'repo', 'tag', 'host'. Change-Id: Id698d15fcc76ea9935d1d6ce4594459dd2ad9319 |
||
---|---|---|
.. | ||
alembic | ||
__init__.py | ||
alembic.ini | ||
api.py | ||
migration.py | ||
models.py |