pacificclimate / modelmeta

An ORM representation of the model metadata database
GNU General Public License v3.0
1 stars 0 forks source link

Provide migration compatibility check function #101

Open rod-glover opened 4 years ago

rod-glover commented 4 years ago

Users of modelmeta databases will want to check that they are accessing a database with a compatible migration. This function is naturally part of modelmeta, which is defines both migrations and corresponding ORM updates.

The function should consult the table alembic_version and return a boolean indicating compatibility.