Add version 6.1 with automatic migration of old material types format in mix type
continuous-integration/drone Build is passing Details

This commit is contained in:
FyloZ 2022-04-11 22:57:29 -04:00
parent e9b7429a5d
commit af8b1538d8
Signed by: william
GPG Key ID: 835378AE9AF4AE97
2 changed files with 11 additions and 1 deletions

View File

@ -1,7 +1,7 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
group = "dev.fyloz.colorrecipesexplorer"
version = "6.0"
version = "6.1"
plugins {
kotlin("jvm") version "1.6.20"

View File

@ -27,6 +27,16 @@
</changeSet>
<changeSet id="4" author="william">
<sql>
UPDATE mix_type mt
LEFT JOIN material m ON m.id = mt.material_id
LEFT JOIN material_type mmt ON mmt.id = m.material_type_id
SET mt.material_type_id = mmt.id
</sql>
</changeSet>
<changeSet id="5" author="william">
<dropNotNullConstraint tableName="mix_type" columnName="material_id" columnDataType="bigint"/>
<addNotNullConstraint tableName="mix_type" columnName="material_type_id" columnDataType="bigint" />
</changeSet>
</databaseChangeLog>