Skip to content

Commit f109d8e

Browse files
committed
(refs #66) Fix migration in 1.6.0 for MySQL
1 parent 4961fcb commit f109d8e

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name := "gitbucket-ci-plugin"
22
organization := "io.github.gitbucket"
3-
version := "1.6.2"
3+
version := "1.6.3"
44
scalaVersion := "2.12.6"
55
gitbucketVersion := "4.25.0"
66
libraryDependencies += "org.fusesource.jansi" % "jansi" % "1.16"

src/main/resources/update/gitbucket-ci_1.6.0.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<addColumn tableName="CI_RESULT">
44
<column name="QUEUED_TIME" type="datetime" nullable="true"/>
55
<column name="EXIT_CODE" type="int" nullable="true"/>
6-
<column name="BUILD_SCRIPT" type="text" nullable="false" defaultValue = ""/>
6+
<column name="BUILD_SCRIPT" type="text" nullable="true"/>
77
</addColumn>
88
<sql>
9-
UPDATE CI_RESULT SET QUEUED_TIME = START_TIME
9+
UPDATE CI_RESULT SET QUEUED_TIME = START_TIME, BUILD_SCRIPT = ''
1010
</sql>
1111
<sql>
1212
UPDATE CI_RESULT SET EXIT_CODE = 0 WHERE STATUS = 'success'
@@ -16,4 +16,5 @@
1616
</sql>
1717
<addNotNullConstraint tableName="CI_RESULT" columnName="QUEUED_TIME"/>
1818
<addNotNullConstraint tableName="CI_RESULT" columnName="EXIT_CODE"/>
19+
<addNotNullConstraint tableName="CI_RESULT" columnName="BUILD_SCRIPT"/>
1920
</changeSet>

src/main/scala/Plugin.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ class Plugin extends gitbucket.core.plugin.Plugin with CIService with AccountSer
5858
new Version("1.6.0",
5959
new LiquibaseMigration("update/gitbucket-ci_1.6.0.xml")),
6060
new Version("1.6.1"),
61-
new Version("1.6.2")
61+
new Version("1.6.2"),
62+
new Version("1.6.3")
6263
)
6364

6465
override val assetsMappings = Seq("/ci" -> "/gitbucket/ci/assets")

0 commit comments

Comments
 (0)