API 1.0.45 ExerciseType buddy_warning

This commit is contained in:
Bossanyi Tibor 2021-06-17 23:30:15 +02:00
parent 2e7a0a9021
commit 36c5bcbc49
6 changed files with 13 additions and 3 deletions

View File

@ -11,7 +11,7 @@ plugins {
}
group = "com.aitrainer"
version = "1.0.44"
version = "1.0.45"
java.sourceCompatibility = JavaVersion.VERSION_1_8
repositories {

View File

@ -0,0 +1,8 @@
START TRANSACTION;
ALTER TABLE `exercise_type`
ADD COLUMN `buddy_warning` TINYINT NOT NULL DEFAULT 0 AFTER `base`;
UPDATE configuration set config_value = "1.0.45", date_change=CURRENT_DATE WHERE config_key = "db_version";
COMMIT;

View File

@ -18,6 +18,7 @@ data class ExerciseType(
@Expose @get: Null var unitQuantityUnit: String?,
@Expose @get: NonNull var active: Boolean?,
@Expose @get: NonNull var base: Boolean?,
@Expose @get: NonNull var buddyWarning: Boolean = false,
@Expose @Id @GeneratedValue(strategy = GenerationType.IDENTITY) val exerciseTypeId: Long = 0,

View File

@ -17,6 +17,6 @@ logging.config=classpath:logback-spring.xml
logging.file=logs
# if the database structure has been changed, increment this version number
application.version=1.0.44
application.version=1.0.45
jwt.secret=aitrainer

View File

@ -17,7 +17,7 @@ logging.config=classpath:logback-spring.xml
logging.file=logs
# if the database structure has been changed, increment this version number
application.version=1.0.44
application.version=1.0.45
jwt.secret=aitrainer
jasypt.encryptor.password=Tibor

View File

@ -87,6 +87,7 @@ class AppPackageTest {
val listExerciseType: List<ExerciseType> = gson.fromJson(exerciseTypeJson, type)
assertTrue(listExerciseType.isNotEmpty())
assertEquals(listExerciseType[1].name, "Húzódzkodás")
assertEquals(listExerciseType[1].buddyWarning, true)
//assertEquals(listExerciseType[1].translations[0].name, "Bicepsz")
} else if (record[0] == ExerciseTree::class.simpleName) {
val exerciseTreeJson: String = record[1]