2020-02-15 23:23:09 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Generate the database migration files
|
|
|
|
|
|
|
|
VERSION="$( head -1 debian/changelog | awk -F'[()-]' '{ print $2 }' )"
|
|
|
|
|
|
|
|
pushd api-daemon
|
2020-03-15 17:33:27 -04:00
|
|
|
export PVC_CONFIG_FILE="./pvcapid.sample.yaml"
|
2020-02-15 23:23:09 -05:00
|
|
|
./pvcapid-manage.py db migrate -m "PVC version ${VERSION}"
|
|
|
|
./pvcapid-manage.py db upgrade
|
|
|
|
popd
|