In the past I’ve used a PHP script to change the language of all fields, but I can’t find anything for switching all UNSIGNED MEDIUMINT to UNSIGNED INT. Is this possible? Should I manually switch them all? 😮
Turns out mediumint is too small… so I have to change a lot of fields /:
edit:
thanks for the input, I might just do it manually now that I know there’s no simple automated way of doing it. I just didn’t want to waste my time changing 100+ fields manually if there was an automated way.
MySQL does not have an automated way to say “take all of the columns of type X and change them to type Y.” You may be able to query the
information_schemadatabase to figure out which columns you need to alter, and then you can build theALTER TABLEquery based on that information.Specifically, have a look at the
information_schema.columnstable.