]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Remove instance Foreign Key in volumes table, replace with instance_uuid
authorJohn Griffith <john.griffith@solidfire.com>
Wed, 9 May 2012 17:02:34 +0000 (11:02 -0600)
committerJohn Griffith <john.griffith@solidfire.com>
Fri, 11 May 2012 17:59:58 +0000 (11:59 -0600)
commitfe23db33801fa72665e480534d070ddae4a9c451
tree9d78153a92b92b9953b003e48a964c887a8585a8
parent1c52fb3041df5661756246705942c60b4b1448d5
Remove instance Foreign Key in volumes table, replace with instance_uuid

* Remove the instance relationship and instance_id FK
* Add instance_uuuid column to volumes table

Change-Id: I54d723dcb9819731a58ec64095c54c99aa9e5dc4
15 files changed:
cinder/api/openstack/volume/volumes.py
cinder/db/api.py
cinder/db/sqlalchemy/api.py
cinder/db/sqlalchemy/migrate_repo/versions/092_change_fk_instance_id_to_uuid.py [new file with mode: 0644]
cinder/db/sqlalchemy/migrate_repo/versions/092_sqlite_downgrade.sql [new file with mode: 0644]
cinder/db/sqlalchemy/migrate_repo/versions/092_sqlite_upgrade.sql [new file with mode: 0644]
cinder/db/sqlalchemy/models.py
cinder/exception.py
cinder/tests/api/openstack/fakes.py
cinder/tests/api/openstack/volume/test_volumes.py
cinder/tests/test_migrations.py
cinder/tests/test_volume.py
cinder/volume/api.py
cinder/volume/manager.py
etc/cinder/cinder.conf.sample