views:

26

answers:

1

i use elixir as orm for mysql database,now i want to add new column to my schema,how could i keep orginal data in the mysql and update the schema automatically,the concept called migrate on ruby on rails,it seems i didn't found relevent infomation & code in sqlalchemy & elixir,any advice is welcome.

A: 

You're looking for sqlalchemy-migrate. Elixir is a layer on top of SQLAlchemy, and sqlalchemy-migrate was inspired by RoR migrate.

ma3