Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can SQLAlchemy update the table structure?

I am working on my first pylons + SQLAlchemy app (I'm new to both).

As I change my mind on the table structure, I wish there was a similar function to metadata.create_all(), that checks if there are new columns definitions and create them in the database.

Does such a function exist ?

like image 823
ychaouche Avatar asked Nov 16 '09 13:11

ychaouche


1 Answers

I'm not (yet) a SQLAlchemy user, but I've heard good things about sqlalchemy-migrate. The general term of the problem you have is "schema migration", I'm sure a google search containing these terms will help you further.

like image 157
Benjamin Wohlwend Avatar answered Nov 03 '22 03:11

Benjamin Wohlwend