DescriptionDo db migrations in charm
When adding a db relation, or when changing the revno, run bin/migrations
upgrade. Since the db may not be initialized when the relation is created,
use --init to initialize it if needed.
Disable the ingest cronjob while upgrading the source tree, since that may
migrate the db. Of course, this doesn't handle the case where the cronjob is
already in progress, but it's a start.
Also, set -x only after sourcing common, to avoid repetitive definition spam.
https://code.launchpad.net/~abentley/charms/precise/charmworld/migrate/+merge/143541
(do not edit description out of merge proposal)
Patch Set 1 #
MessagesTotal messages: 2
|