Use upgrade rather than create_schema for wather database

watcher has moved to version control. upgrade should be used rather than
create_schema

Closes-Bug: #1722167
Change-Id: I914471215ff88b6bdde48e2953cd1ced440de4b4
This commit is contained in:
Jeffrey Zhang 2017-10-09 15:36:19 +08:00
parent 2ef0bd51a9
commit 4407e31540

View File

@ -3,6 +3,6 @@
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
watcher-db-manage --config-file /etc/watcher/watcher.conf create_schema
watcher-db-manage --config-file /etc/watcher/watcher.conf upgrade
exit 0
fi