START TRANSACTION;

ALTER TABLE `training_plan_detail`
	ADD COLUMN `ecto_resting_time` INT(5) NULL DEFAULT NULL AFTER `ecto_weight`,
	ADD COLUMN `endo_resting_time` INT(5) NULL DEFAULT NULL AFTER `endo_weight`,
	ADD COLUMN `intensity` DOUBLE NULL DEFAULT NULL AFTER `round_group`;

UPDATE configuration set config_value = "1.0.58", date_change=CURRENT_DATE WHERE config_key = "db_version";

COMMIT;
