diff options
author | Boris Pavlovic <boris@pavlovic.me> | 2013-02-15 15:16:27 +0400 |
---|---|---|
committer | Boris Pavlovic <boris@pavlovic.me> | 2013-02-18 05:30:51 +0400 |
commit | cf6e7ac1e4a9fdab81476741849f8100c10b9770 (patch) | |
tree | cb15819dae137ec96a4c18842d87bad3bb1abbcd /nova/utils.py | |
parent | 5d272b3eb5e411672d910aa60a4df9c6baab53a8 (diff) | |
download | nova-cf6e7ac1e4a9fdab81476741849f8100c10b9770.tar.gz nova-cf6e7ac1e4a9fdab81476741849f8100c10b9770.tar.xz nova-cf6e7ac1e4a9fdab81476741849f8100c10b9770.zip |
Add generic dropper for duplicate rows
Add generic function that help us to drop duplicated rows from table,
before creating unique constarints. It is very usefull in migrations,
because it will allow DBA to make migrations without IntegrityError
exceptions.
It deletes all duplicates of rows except row with max value in id column.
blueprint db-unique-keys
Change-Id: I7e48d3eb78cf9a5d30752541b143b0c9fa1f838a
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions