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='TRADITIONAL,ALLOW_INVALID_DATES';

ALTER TABLE `event`
  ADD COLUMN `page_title` VARCHAR(100) NULL DEFAULT NULL AFTER `title`;

ALTER TABLE `page`
  ADD COLUMN `title` VARCHAR(50) NULL DEFAULT NULL AFTER `image_id`,
  ADD INDEX `fk_page_image1_idx` (`image_id` ASC),
  DROP INDEX `fk_page_image1_idx` ;


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