summaryrefslogtreecommitdiffstats
path: root/bin/stack
diff options
context:
space:
mode:
authorBoris Pavlovic <boris@pavlovic.me>2013-02-18 23:51:57 +0400
committerBoris Pavlovic <boris@pavlovic.me>2013-03-26 09:05:59 +0400
commit7f185dff87a939f7a8ae8248528d0957dce7bc81 (patch)
treec99152795ad8354bb8fe47baf284867283abf9e4 /bin/stack
parent338714c0dbe5db5cda70069ba2abf15887ba5079 (diff)
downloadnova-7f185dff87a939f7a8ae8248528d0957dce7bc81.tar.gz
nova-7f185dff87a939f7a8ae8248528d0957dce7bc81.tar.xz
nova-7f185dff87a939f7a8ae8248528d0957dce7bc81.zip
Remove race condition (in InstanceTypes)
Soft delete all duplicate rows with the same name except one with the biggest value in `id` column. Soft delete all duplicate rows with the same flavorid except one with the biggest value in `id` column. Create UC on columns (name, deleted) and (flavorid, deleted) Replace Select then Insert -> Try to Insert. blueprint db-enforce-unique-keys Change-Id: If66d2f1387c2b2748784bf7ac9746b8d755b70a9
Diffstat (limited to 'bin/stack')
0 files changed, 0 insertions, 0 deletions