]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Fix latest DB migration script
authorZane Bitter <zbitter@redhat.com>
Fri, 15 Jun 2012 14:19:08 +0000 (16:19 +0200)
committerZane Bitter <zbitter@redhat.com>
Fri, 15 Jun 2012 15:04:51 +0000 (17:04 +0200)
commitbe0d7bf844c6a4b6b594e83f1e7a6d0a2d73826f
treed2cc2c0d4e9ea8d18d963779461d7697f1136ddd
parentf8fbbd07265763b2df4903133e1f73b049b6834d
Fix latest DB migration script

Unfortunately, as long as the user_creds_id column is not nullable the
script will still fail if there is data in the database. However with this
patch it is at least left in a recoverable state. Also, downgrades now
work.

Change-Id: Ibb7b7664ad2532154fab90a50bbb95ae9ccfbb91
Signed-off-by: Zane Bitter <zbitter@redhat.com>
heat/db/sqlalchemy/migrate_repo/versions/005_user_creds.py