To use specific ini/config file: alembic -c <ini file> revision --autogenerate -m "<short description"
Example: alembic -c alembic_local.ini revision --autogenerate -m "sccp ecs mapping"
Check migrations/versions/
Need to use batch_op for altering/updating tables, both for upgrade and downgrade
No need when initially creating a table
Do alembic upgrade head to apply the changes specified in the migrations file to the database
If you used a specific ini/config file when autogenerating the revision, you also need to specify the config when upgrading the head: alembic -c alembic_local.ini upgrade head