Forum Moderators: open
UPDATE table SET col='0' WHERE col='high';
UPDATE table SET col='1' WHERE col='low'; ALTER TABLE your_table` ADD `col_new` TINYINT NOT NULL DEFAULT '0' AFTER `col`;<added>
UPDATE `your_table` SET col_new='1' WHERE col='low';
ALTER TABLE `your_table` DROP `col`;
ALTER TABLE `your_table` CHANGE `col_new` `col` TINYINT NOT NULL;
Internally the representation of an ENUM is a one-byte value if there are less than 256 values, so MySQL already stores your ENUM internally as TINYINT. All you are trying to do now is replacing it with the same type with the drawback that your program becomes less readable.