Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python database migration on application startup

I am currently developing a new app against postgresql. For ORM and migrations I thought to use SQLAlchemy with alembic.

As I would like to handle migrations on application startup I wondered if there are any python projects (like FlyWay + Spring for java) which already handle this problem.

If this can be handled using other solutions than SQLAlchemy and Alembic I would also consider this helpful!

Thanks in advance!

like image 234
René Jahn Avatar asked Nov 02 '25 22:11

René Jahn


2 Answers

Pyway https://pypi.org/project/pyway is a database versioning and migration tool inspired by Flyway!

like image 73
Donnie Avatar answered Nov 04 '25 11:11

Donnie


SQLAlchemy and Alembic is cool for Python.

But what about yoyo ? https://pypi.org/project/yoyo-migrations/

like image 23
amer Avatar answered Nov 04 '25 13:11

amer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!