diff options
author | Yuriy Zveryanskyy <yzveryanskyy@mirantis.com> | 2013-06-17 13:48:45 +0300 |
---|---|---|
committer | Yuriy Zveryanskyy <yzveryanskyy@mirantis.com> | 2013-06-17 13:48:45 +0300 |
commit | 7fdba82bad3c4e550bda4db03ed9d1ab7ab62934 (patch) | |
tree | e45ed5de89b0a542f350018168056d625c9ba562 /nova/utils.py | |
parent | 328b347cd058f1c87d7e32a18d9decc0ba517266 (diff) | |
download | nova-7fdba82bad3c4e550bda4db03ed9d1ab7ab62934.tar.gz nova-7fdba82bad3c4e550bda4db03ed9d1ab7ab62934.tar.xz nova-7fdba82bad3c4e550bda4db03ed9d1ab7ab62934.zip |
Add unique constraints to Cell.
In documentation: "name: Name of the current cell. This must be
unique for each cell"
Added unique constraint 'uniq_cell_name0deleted' ('name','deleted')
to Cell model and migrate sripts.
Added new exception `CellsExists`. Updated cell_create() in db.api.
Tests updated respectively.
blueprint db-enforce-unique-keys
Change-Id: Ib76e167089cb4756e4438613b49013ebf0874afe
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions