ExerciseTree getActiveMenu items

This commit is contained in:
Bossanyi Tibor
2020-08-02 16:03:51 +02:00
parent 1334104944
commit af32c32a70
8 changed files with 121 additions and 3 deletions
+1 -1
View File
@@ -198,7 +198,7 @@ ENGINE=InnoDB
;
CREATE TABLE `exercise_tree` (
`item_id` INT(11) NOT NULL AUTO_INCREMENT,
`tree_id` INT(11) NOT NULL AUTO_INCREMENT,
`parent_id` INT(11) NOT NULL DEFAULT '0',
`name` CHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
`image_url` CHAR(200) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
+1
View File
@@ -1,5 +1,6 @@
ALTER TABLE `exercise_type`
ADD COLUMN `tree_id` INT(12) DEFAULT 0 AFTER `exercise_type_id`;
ALTER TABLE `exercise_type`
ADD COLUMN `active` TINYINT(1) NULL DEFAULT NULL AFTER `unit_quantity_unit`;
ALTER TABLE `exercise_type`
DROP COLUMN `video`;