by Tim Hunt.
The upgrade code itself should drop the index and re-create it when altering a column (otherwise you get errors like this) but it seems that was not done here. Hence this seems to be a bug. I am just surprised this was not picked up during testing.