Can SQLAlchemy update the table structure?

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

As I changed my mind in the table structure, I would like for there to be a similar function for metadata.create_all (), which checks for new column definitions and creates them in the database.

Is there such a function?

+6
python mysql sqlalchemy pylons
source share
1 answer

I am not yet a SQLAlchemy user, but I heard well about sqlalchemy-migrate . The general term of the problem that you have is “schema migration”, I’m sure that google search containing these conditions will help you in the future.

+5
source share

All Articles