To prevent human errors, I'd like to check that the current SQL database schema matches the SQLAlchemy models code and there aren't migrations need to run on the application startup. Is there a way to iterate all models on SQLAlchemy and then see if the database schema is that what the model expects it to be? This is to prevent the errors popping up later (HTTP 500 due to missing table, field, etc.) Continue reading...