python - alembic will allow sql files under versions? -


in sqlalchemy-migrate repos, can place .sql files instead of .py files under versions folder upgrading/downgrading database schema.

001_mysql_downgrade.sql 001_mysql_upgrade.sql 

is same feature exist in alembic? if yes can plz explain how do?

thanks

you call upon files in migration .py files, inside upgrade() , downgrade() callables. can customize how callables render editing script.py.mako file.

however, .py file not there @ all, you'd need override scriptdirectory , script right now, unless made more of hook implement extensions this. overriding classes possible require monkeypatching @ moment. it's alembic support.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -