Add version 6.1 with automatic migration of old material types format in mix type
continuous-integration/drone Build is passing
Details
continuous-integration/drone Build is passing
Details
This commit is contained in:
parent
e9b7429a5d
commit
af8b1538d8
|
@ -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"
|
||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue