I have a column called version in that there are numbers from 2-300.000.
In that column I have deleted some Version numbers, so the numbers are not continuous from 2-300.000, there are missing some numbers.
I need to correct it so it will be continuous again. This is easy and could be done with
SET @ver := 1;
UPDATE geo_patch SET Version = ( SELECT @ver := @ver + 1 ) ORDER BY Version DESC;
My problem is there are duplicates with the same Version number, and I need to keep them as duplicates but still update them with a new version number.