Just looking for sanity checking from team Canton:
While in the process of getting canton up and running on Daml Hub, we upgraded Canton to 2.2.0, which requires a schema migration. Because we weren’t handling migrations, this broke our existing canton test instances.
To rectify this, my plan is to modify our participant + domain bootstrap scripts to include
participant.stop
participant.db.migrate
participant.start
so that canton schema changes will be automatically applied to our database.
Are there obvious problems to this approach/a better way? I didn’t see any way to do without having to start the participant, stop the participant, and then start it again.
Later iterations we’d like to implement rolling updates and give users windows on downtime occurs, rather than doing it as part of a startup script, but for now just going for “simplest thing that will reliably work.”