I added a url column in my table, and now sqlalchemy is saying ‘unknown column url’.
Why isn’t it updating the table?
There must be a setting when I create the session?
I am doing:
Session = sessionmaker(bind=engine)
Is there something I am missing?
I want it to update any table that doesn’t have a property that I added to my Table structure in my python code.
I’m not sure SQLAlchemy supports schema migration that well (atleast the last time I touched it, it wasn’t there).
A couple of options.
autoloadfeature to have SQLAlchemy automatically read out the columns from your database. This will require tests to make sure that it works but you get the idea in generally. DRY.