Add a juju action for upgrading the schema
Bug #1418103 reported by
Free Ekanayaka
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/
Initially it should be a "migrate and hope for the best" action, but in the future (in bug https:/
Initially the script can be invoked via juju run, since Juju actions are not yet officially supported.
Related branches
lp:~tribaal/landscape-charm/migrate-schema-action
- Free Ekanayaka (community): Approve
- 🤖 Landscape Builder: Approve (test results)
- Alberto Donato (community): Approve
-
Diff: 114 lines (+57/-6)6 files modifiedactions.yaml (+3/-0)
actions/migrate-schema (+9/-0)
lib/callbacks/scripts.py (+2/-4)
lib/migrate_schema.py (+17/-0)
lib/paths.py (+6/-2)
lib/tests/test_migrate_schema.py (+20/-0)
tags: | added: upgradable-charm |
Changed in landscape-charm: | |
milestone: | none → 1.0 |
Changed in landscape-charm: | |
status: | New → In Progress |
assignee: | nobody → Chris Glass (tribaal) |
Changed in landscape-charm: | |
importance: | Undecided → Medium |
tags: | added: kanban |
tags: | removed: kanban |
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.
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.