12 lines
285 B
Bash
Executable File
12 lines
285 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Generate the database migration files
|
|
|
|
VERSION="$( head -1 debian/changelog | awk -F'[()-]' '{ print $2 }' )"
|
|
|
|
pushd api-daemon
|
|
export PVC_CONFIG_FILE="./pvcapid.sample.yaml"
|
|
./pvcapid-manage.py db migrate -m "PVC version ${VERSION}"
|
|
./pvcapid-manage.py db upgrade
|
|
popd
|