Add a juju action for upgrading the schema

Bug #1418103 reported by Free Ekanayaka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Charm
Fix Released
Medium
Chris Glass

Bug Description

We should add a ./actions/migrate-schema script and associated actions.yaml metadata with code that will essentially call "schema --upgrade" in order to perform schema upgrades/migrations.

Initially it should be a "migrate and hope for the best" action, but in the future (in bug https://bugs.launchpad.net/landscape-charm/+bug/1456953), we should check for the number of connected landscape users first.

Initially the script can be invoked via juju run, since Juju actions are not yet officially supported.

Related branches

tags: added: upgradable-charm
Changed in landscape-charm:
milestone: none → 1.0
Revision history for this message
Данило Шеган (danilo) wrote :

FWIW, "schema" script does not have an "--upgrade" argument, but if called without any arguments, it will do a couple of things which end up being noop when schema is there, and then upgrade the schema. So, I believe that calling "./schema" should be sufficient for the "migrate-schema" action.

Chris Glass (tribaal)
Changed in landscape-charm:
status: New → In Progress
assignee: nobody → Chris Glass (tribaal)
Changed in landscape-charm:
importance: Undecided → Medium
Chris Glass (tribaal)
tags: added: kanban
tags: removed: kanban
Chris Glass (tribaal)
description: updated
Changed in landscape-charm:
status: In Progress → Fix Committed
Changed in landscape-charm:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.