11 lines
238 B
Plaintext
11 lines
238 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
# Generate the database migration files
|
||
|
|
||
|
VERSION="$( head -1 debian/changelog | awk -F'[()-]' '{ print $2 }' )"
|
||
|
|
||
|
pushd api-daemon
|
||
|
./pvcapid-manage.py db migrate -m "PVC version ${VERSION}"
|
||
|
./pvcapid-manage.py db upgrade
|
||
|
popd
|