-- dependson: None
-- model: api.models.SpecialItem
-- author: Pengfei.X
-- date: 2015.09.10 11:40:00
-- description: alter table api_specialitem column diary_id


ALTER TABLE api_specialitem ADD COLUMN `diary_id` int(11) DEFAULT NULL;
ALTER TABLE api_specialitem ADD CONSTRAINT `fk_specialitem_diary_id` FOREIGN KEY (`diary_id`) REFERENCES `api_diary` (`id`);
