diff --git a/gen-api-doc.py b/gen-api-doc similarity index 100% rename from gen-api-doc.py rename to gen-api-doc diff --git a/gen-api-migrations b/gen-api-migrations new file mode 100755 index 00000000..cbb0a3cf --- /dev/null +++ b/gen-api-migrations @@ -0,0 +1,13 @@ +#!/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 +git reset +git add migrations +git commit -v "[gen-api-migrations] New database migration" +popd