开发者

Can SQLAlchemy update the table structure?

开发者 https://www.devze.com 2022-12-11 19:11 出处:网络
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

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 def开发者_如何学编程initions and create them in the database.

Does such a function exist ?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消