That is avoiding “data truncated” error. You must avoid to replace a value in use.
The right way, if a given value is already applied to some items, is
- to add the new value (supposed similar to the old) to the table structure
- search for all the items with old value
- replace in each item the old value with the new one
- delete the old value in the table structure