diff --git a/build.gradle.kts b/build.gradle.kts index 29cc566..9863975 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,7 +1,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile group = "dev.fyloz.colorrecipesexplorer" -version = "1.1.1" +version = "1.2.0" plugins { kotlin("jvm") version "1.4.30" diff --git a/src/main/kotlin/dev/fyloz/colorrecipesexplorer/databasemanager/Properties.kt b/src/main/kotlin/dev/fyloz/colorrecipesexplorer/databasemanager/Properties.kt index 203f490..2ba5e6c 100644 --- a/src/main/kotlin/dev/fyloz/colorrecipesexplorer/databasemanager/Properties.kt +++ b/src/main/kotlin/dev/fyloz/colorrecipesexplorer/databasemanager/Properties.kt @@ -5,7 +5,7 @@ import java.io.FileInputStream import java.util.* /** The latest version of the database supported by the utility. The [DatabaseUpdaterProperties] target version cannot be higher than this. */ -internal const val LATEST_DATABASE_VERSION = 3 +internal const val LATEST_DATABASE_VERSION = 4 /** The key of the target version property */ internal const val PROPERTY_TARGET_VERSION = "database.target-version" diff --git a/src/main/resources/changelogs/changelog.4.xml b/src/main/resources/changelogs/changelog.4.xml new file mode 100644 index 0000000..2fb1554 --- /dev/null +++ b/src/main/resources/changelogs/changelog.4.xml @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO recipe_group_information (group_id, note, recipe_id) + SELECT g.id, r.note, r.id + FROM + (SELECT id, note FROM recipe) as r, + (SELECT id FROM employee_group ORDER BY id LIMIT 1) as g + + + UPDATE recipe_step s + INNER JOIN recipe_group_information rgi ON rgi.recipe_id=s.recipe_id + SET recipe_group_information_id=rgi.id + + + + + + + + + + + + + + + + + + + + metadata_key='version' + + + + + metadata_key='version' + + + + diff --git a/src/main/resources/changelogs/changelog.master.4.xml b/src/main/resources/changelogs/changelog.master.4.xml new file mode 100644 index 0000000..0e8e890 --- /dev/null +++ b/src/main/resources/changelogs/changelog.master.4.xml @@ -0,0 +1,11 @@ + + + + + + +