Fixed a bug in --upgrade-db
Fixed a bug in --upgrade-db


Former-commit-id: d2817591de4780070fdb49cf3fb1f5f294e5f5ef [formerly d2817591de4780070fdb49cf3fb1f5f294e5f5ef [formerly 91b16da1fdad4447220a8bbdb76b816dcf916e92]]
Former-commit-id: 655501902bceb9e9917e6238c560e64a39475ef4
Former-commit-id: bd664af8f418ea5786a65b71d6dfa14ae669f9b9
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine