#! /bin/bash

echo "Database: $WL_PG_URI"

printf "Latest Alembic Revision: "
alembic history | head -1 | sed -e 's/.*\-\> //'

printf "Current Db Revision: "
python -c "from tracker import db; db.setup_session(); print(db.Session.execute('select * from alembic_version').fetchall()[0][0]);" | tail -1
