Make sure to stamp database at latest revision after setup

This commit is contained in:
Charlotte Van Petegem 2022-05-20 21:59:51 +02:00
parent f87f3c5446
commit bbb38aa825
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -4,3 +4,6 @@ set -euo pipefail
cd "$(dirname "$0")/app" cd "$(dirname "$0")/app"
env python create_database.py setup_database env python create_database.py setup_database
latest_revision=$(env python app.py db heads | sed "s/ (head)$//")
echo Stamping db at $latest_revision
env python app.py db stamp $latest_revision