Skip to content

Instantly share code, notes, and snippets.

View m-aciek's full-sized avatar

Maciej Olko m-aciek

View GitHub Profile
@m-aciek
m-aciek / check.py
Created May 10, 2019 22:00
Alembic database freshness check.
from alembic import config
from alembic import script
from alembic.runtime import migration
import sqlalchemy
import exceptions
engine = sqlalchemy.create_engine(DATABASE_URL)
alembic_cfg = config.Config('alembic.ini')