]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Switch to UUID for the Stack primary key.
authorSteve Baker <sbaker@redhat.com>
Fri, 9 Nov 2012 02:45:06 +0000 (15:45 +1300)
committerSteve Baker <sbaker@redhat.com>
Fri, 9 Nov 2012 02:45:06 +0000 (15:45 +1300)
commitafd1b9abdbf9b7b037ef144b5915818b4624bc83
tree6a4d7aa95d72204d794a538917d71a0c055886cf
parenta09a9a2c21e0278ab8e59f28f2a1d653d4317f3a
Switch to UUID for the Stack primary key.

For the migrate upgrade, existing integer keys remain and any subsequent stack
will be assigned a uuid.

For a migrate downgrade, it should work fine if there have been no stacks added
since ugrade. Added stacks will have their IDs 'truncated' back to an integer
which will require some manual fixup after downgrade.

Change-Id: Ib882bece911fcbc96fffab16a9f0e5ce3cb55fed
heat/db/sqlalchemy/migrate_repo/versions/012_stack_id_uuid.py [new file with mode: 0644]
heat/db/sqlalchemy/models.py