LOCK TABLES `image` WRITE;

ALTER TABLE image
ADD parent_image_id int(11);

ALTER TABLE image
ADD type int(11);

UNLOCK TABLES;