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
1 changed files with 3 additions and 0 deletions

View File

@ -4,3 +4,6 @@ set -euo pipefail
cd "$(dirname "$0")/app"
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