zun/zun/db/sqlalchemy
weikeyou 72eac7c8f2 Add host to image table
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
2018-08-17 14:26:47 +08:00
..
alembic Add host to image table 2018-08-17 14:26:47 +08:00
__init__.py update higgins with zun 2016-06-08 22:21:34 -05:00
alembic.ini update higgins with zun 2016-06-08 22:21:34 -05:00
api.py Add get_count method 2018-08-11 14:54:05 +07:00
migration.py Replace DbMigrationError with DBMigrationError 2017-09-05 23:11:48 +08:00
models.py Add host to image table 2018-08-17 14:26:47 +08:00