I have simple case i.e, one database. At times, I want to generate a revision using different script.py.mako file (or different content). Is it possible to support more that one script.py.mako file and specify in command not to use default script.py.mako file? Or any other suggestion to generate a revision but with content other than one in script.py.mako file?
In Normal case, when I run alembic revision --autogenerate --message "message"
command, this generates a revision based on script.py.mako
template.
But in some cases I want to use the same command, but with some flag or some indication to generate a revision with different content. And content can be as simple as writing something in database or making an api call.
So how can I use alembic revision --autogenerate
command to generate revision based on supplied flag?