MDL-44251 DB helper to reorder rows without violating a unique index.
MDL-44251 DB helper to reorder rows without violating a unique index.
Merge branch 'MDL-44251' into MDL-43749
fixup! MDL-44251
MDL-43749 complete changes, I hope.