Skip to content

Ci - Testing of DB schema upgrade script

Create a CI job (maybe optional, maybe triggered only when there are changes to the catalogue schema that do the following).

  • Compile CTA
  • Take the catalogue version x of the commit from CMakeLists.txt
  • Look for a migration script to x, from some version y.
  • Run cta-catalogue-schema-create -v y
  • Populate the catalogue (like is done in the CI)
  • Update the schema to version x using liquibase and the migration script (the version in the yum repos is no good for CC7, need to manually put in the container version 4.8.0)
  • Run cta-catalogue-schema-verify and validate the version is correctx` and the command passes.
Edited by Michael Davis