-- Deploy gaia:doctor_2015_12_02_db_change_for_1.6 to mysql

BEGIN;

ALTER TABLE api_reservation ADD COLUMN `cancel_reason` varchar(100);

CREATE TABLE `api_schedule_tempalte` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `doctor_id`  VARCHAR(100) NOT NULL,
  `title`  VARCHAR(100),
  `content`  LONGTEXT NOT NULL,
  `created_time`  DATETIME,
  `updated_time`  DATETIME,
  PRIMARY KEY (`id`)
);

ALTER TABLE api_doctoraddress ADD COLUMN `created_time` DATETIME;
ALTER TABLE api_doctoraddress ADD COLUMN `updated_time` DATETIME;

COMMIT;
