API 1.0.23 ExerciseTree parent_id delete, kotlin, spring boot 2.4
This commit is contained in:
+18
-19
@@ -580,7 +580,6 @@ REPLACE INTO `exercise_plan_translation` (`translation_id`, `language_code`, `na
|
||||
-- Struktúra mentése tábla aitrainer2. exercise_tree
|
||||
CREATE TABLE IF NOT EXISTS `exercise_tree` (
|
||||
`tree_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`parent_id` int(11) NOT NULL DEFAULT 0,
|
||||
`name` char(50) DEFAULT NULL,
|
||||
`image_url` char(200) DEFAULT NULL,
|
||||
`active` tinyint(1) DEFAULT 1,
|
||||
@@ -589,24 +588,24 @@ CREATE TABLE IF NOT EXISTS `exercise_tree` (
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
-- Tábla adatainak mentése aitrainer2.exercise_tree: ~3 rows (hozzávetőleg)
|
||||
REPLACE INTO `exercise_tree` (`tree_id`, `parent_id`, `name`, `image_url`, `active`) VALUES
|
||||
(3, 0, 'Cardio', 'images/1.cardio.png', 1),
|
||||
(4, 0, 'Strength', 'images/2.strength.png', 1),
|
||||
(5, 0, 'Body Compositions', 'images/3.bcs1.png', 1),
|
||||
(7, 3, 'Aerob', 'images/1.1.aerob.png', 1),
|
||||
(8, 3, 'Anaerob', 'images/1.2.anaerob.png', 1),
|
||||
(9, 4, 'One Rep Max', 'images/2.2.1.1RM.png', 1),
|
||||
(10, 4, 'Endurance', 'images/2.1.endurance.png', 1),
|
||||
(11, 5, 'BMI', 'images/3.1.BMI.png', 0),
|
||||
(12, 5, 'BMR', 'images/3.2.BMR.png', 0),
|
||||
(13, 5, 'Sizes', 'images/3.3.sizes.png', 0),
|
||||
(14, 9, 'Chest', 'images/2.2.1.1.chestpress.png', 1),
|
||||
(15, 9, 'Biceps', 'images/2.2.1.3.biceps.png', 1),
|
||||
(16, 9, 'Triceps', 'images/2.2.1.4.triceps.png', 1),
|
||||
(17, 9, 'Shoulders', 'images/2.2.1.5.shoulders.png', 1),
|
||||
(18, 9, 'Thigh', 'images/2.1.4.squats.png', 1),
|
||||
(19, 9, 'Calf', 'images/2.1.4.squats.png', 1),
|
||||
(20, 9, 'Back', 'images/2.2.1.5.shoulders.png', 1);
|
||||
REPLACE INTO `exercise_tree` (`tree_id`, `name`, `image_url`, `active`) VALUES
|
||||
(3, 'Cardio', 'images/1.cardio.png', 1),
|
||||
(4, 'Strength', 'images/2.strength.png', 1),
|
||||
(5, 'Body Compositions', 'images/3.bcs1.png', 1),
|
||||
(7, 'Aerob', 'images/1.1.aerob.png', 1),
|
||||
(8, 'Anaerob', 'images/1.2.anaerob.png', 1),
|
||||
(9, 'One Rep Max', 'images/2.2.1.1RM.png', 1),
|
||||
(10, 'Endurance', 'images/2.1.endurance.png', 1),
|
||||
(11, 'BMI', 'images/3.1.BMI.png', 0),
|
||||
(12, 'BMR', 'images/3.2.BMR.png', 0),
|
||||
(13, 'Sizes', 'images/3.3.sizes.png', 0),
|
||||
(14, 'Chest', 'images/2.2.1.1.chestpress.png', 1),
|
||||
(15, 'Biceps', 'images/2.2.1.3.biceps.png', 1),
|
||||
(16, 'Triceps', 'images/2.2.1.4.triceps.png', 1),
|
||||
(17, 'Shoulders', 'images/2.2.1.5.shoulders.png', 1),
|
||||
(18, 'Thigh', 'images/2.1.4.squats.png', 1),
|
||||
(19, 'Calf', 'images/2.1.4.squats.png', 1),
|
||||
(20, 'Back', 'images/2.2.1.5.shoulders.png', 1);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `exercise_tree_parents` (
|
||||
`exercise_tree_parents_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
ALTER TABLE `exercise_tree`
|
||||
DROP COLUMN `parent_id`;
|
||||
|
||||
UPDATE configuration set config_value = "1.0.23", date_change=CURRENT_DATE WHERE config_key = "db_version";
|
||||
Reference in New Issue
Block a user