]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
make test_databases instance variable
authorSean Dague <sdague@linux.vnet.ibm.com>
Sat, 9 Feb 2013 15:10:03 +0000 (10:10 -0500)
committerSean Dague <sdague@linux.vnet.ibm.com>
Mon, 11 Feb 2013 14:09:50 +0000 (09:09 -0500)
commit3edcec0f48329bfbca0b70b747798ec22b8a0156
treed04db058fa53cf00277dd3120076ac5ac2e84acb
parent835fb61442b9b2737a6791e1a46e6d3a01fa0e6b
make test_databases instance variable

eventually we'll need to do this to allow for testr testing, but in
doing so this also exposed that sqlite downgrade of source_volid
didn't work when data was in the table (sqlite just happily ignored
the drop, then failed when trying to added the column for a second
time during the snake walk.)

This fix also adds the correct sqlite downgrade path for migration
005 to actually drop source_volid, but ensure we don't loose any
other data in the process.

Change-Id: I082b53e108c4d564e33ef79979ea8c1642afdbcd
cinder/db/sqlalchemy/migrate_repo/versions/005_sqlite_downgrade.sql [new file with mode: 0644]
cinder/tests/test_migrations.py