I've been using Flask-Migrate incorrectly. Between two environments I have independently created the migrations folder, and added the migrations folder to the .gitignore file.
This has recently caused problems because I would like to interact with Alembic migrations directly, and track those changes in github.
This means I have forked my production flask app, and now track the migrations folder removing its entry in my .gitignore file. I pulled this branch to my local and destroyed my local db. I ran the tracked migrations and it seems to work.
I'm wondering between two environments, how does flask migrate track what the current revision id is? Suppose I create and run two migrations on my local, and push the migrations folder. How will Flask migrate track these two revisions, and run these on Production, when I run db upgrade on production?