Fix database migration bug introduced in previous template id PR
Force charm code to exit if migrations fail to apply. Otherwise the charm BlockedStatus("Database migration failed") status gets overwritten by ActiveStatus() somewhere else in the code. If it's overwritten then we wouldn't know that migrations failed from juju status, we'd have to manually examine the logs.
Changes:
BlockedStatus("Database migration failed")
status gets overwritten byActiveStatus()
somewhere else in the code. If it's overwritten then we wouldn't know that migrations failed from juju status, we'd have to manually examine the logs.