API 1.0.45 ExerciseType buddy_warning
This commit is contained in:
parent
2e7a0a9021
commit
36c5bcbc49
@ -11,7 +11,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = "com.aitrainer"
|
||||
version = "1.0.44"
|
||||
version = "1.0.45"
|
||||
java.sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
|
||||
repositories {
|
||||
|
8
data/db/update_1_0_45.sql
Normal file
8
data/db/update_1_0_45.sql
Normal 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;
|
@ -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,
|
||||
|
||||
|
@ -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
|
@ -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
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user