Updating to a newer version
Since Suppgram involves database interaction, switching to a newer version may require running database migrations. Suppgram uses Alembic for SQLAlchemy storage. As of now, MongoDB storage doesn't require migrations.
Before updating, ensure that Alembic knows the current state of your database:
python -m alembic -c $(
python -c "import os, suppgram; print(os.path.dirname(suppgram.__file__))"
)/alembic.ini stamp head
Then install newer version of Suppgram:
python -m pip install --upgrade suppgram
Then run migrations:
python -m alembic -c $(
python -c "import os, suppgram; print(os.path.dirname(suppgram.__file__))"
)/alembic.ini upgrade head