SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';

ALTER TABLE `tier`
    DROP COLUMN `name`,
    ADD COLUMN `show_title` TINYINT(4) NOT NULL DEFAULT 1 AFTER `title`,
    ADD COLUMN `show_content` TINYINT(4) NOT NULL DEFAULT 1 AFTER `content`,
    ADD COLUMN `rest_hosp` TINYINT(4) NOT NULL DEFAULT 0 AFTER `show_content`,
    CHANGE COLUMN `title` `title` VARCHAR(100) NOT NULL ;

SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;