- Startup a fresh instance of GoCD server. Wait until the DB is migrated. Stop the GoCD server.
- Download and extract liquibase. Copy the
h2.jar
(same version as that used by GoCD) into thelib
directory of liquibase. - Execute liquibase to generate a liquibase compatible changelog
./liquibase --username sa \ --url jdbc:h2:/path/to/cruise \ --changeLogFile changelog.xml \ --changeSetAuthor 'gocd(generated)' \ generateChangeLog
- Modify the
ConverterTest
to point to thechangelog.xml
file. This will output some files in thegenerated
directory. - Move the files from
create-{index,schema,view}.xml
fromgenerated
dir into theresources
dir. - Ensure that the
left-over.xml
file contains no nodes. - Run a diff of the XML files to make sure changes look OK. Some changes to
create-view.xml
may need to be fixed by hand (remove quotes, fix some join queries, etc) - Package and bundle the distribution
./gradlew clean assembleDist
./gradlew clean assembleDist