Alembic
Alembic allows for our database migrations to be tracked in a version control system.
To create a new migration run:
alembic revision --autogenerate -m 'Describe change here'
It's best practice to review the script post revision creation: alembic/versions
To apply the migration:
alembic upgrade head
Now you can re-check using alembic check
If we need to rollback use:
alembic downgrade -i