API 1.0.55 training_plan next, ecto,endo extensions

This commit is contained in:
Tibor Bossanyi (Freelancer)
2022-04-15 11:11:01 +02:00
parent 357c9be0b7
commit 435ee0537c
7 changed files with 39 additions and 16 deletions
+16
View File
@@ -0,0 +1,16 @@
START TRANSACTION;
ALTER TABLE `training_plan`
ADD COLUMN `next_training_plan_id` INT(11) NULL DEFAULT NULL AFTER `weeks`;
ALTER TABLE `training_plan_detail`
ADD COLUMN `ecto_repeats` INT(5) NULL DEFAULT NULL AFTER `day_id`,
ADD COLUMN `ecto_weight` DOUBLE NULL DEFAULT NULL AFTER `ecto_repeats`,
ADD COLUMN `endo_repeats` INT(5) NULL DEFAULT NULL AFTER `ecto_weight`,
ADD COLUMN `endo_weight` DOUBLE NULL DEFAULT NULL AFTER `endo_repeats`,
ADD COLUMN `round` INT(3) NULL DEFAULT NULL AFTER `endo_weight`,
ADD COLUMN `round_group` CHAR(50) NULL DEFAULT NULL AFTER `round`;
UPDATE configuration set config_value = "1.0.55", date_change=CURRENT_DATE WHERE config_key = "db_version";
COMMIT;