]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add migration tests for PostgreSQL
authorIvan Kolodyazhny <ikolodyazhny@mirantis.com>
Fri, 12 Dec 2014 16:11:58 +0000 (18:11 +0200)
committerIvan Kolodyazhny <e0ne@e0ne.info>
Mon, 12 Jan 2015 22:39:39 +0000 (00:39 +0200)
commit26b19e6353577b0dda52f921c3fe48bdb8e1a1c6
tree2bd05aa1c6f4a8ae7eaccc94b5f3c2238be3d729
parentebc819cc5232c5b749ab22bd082d90c279969d3d
Add migration tests for PostgreSQL

Fix migrations for PostgresSQL:
002_quota_class - PostgreSQL-specific reservations foreign key name
004_volume_type_to_uuid - while downgraging volume_type_id from string to int
PostgreSQL can't do it automatically

Change-Id: I68b8608a85594501536835ddc9dc87bcd2dd80c4
Closes-Bug: #1266595
cinder/db/sqlalchemy/migrate_repo/versions/002_quota_class.py
cinder/db/sqlalchemy/migrate_repo/versions/004_volume_type_to_uuid.py
cinder/tests/test_migrations.py