Re: [sqlalchemy] change table contents with alembic

2012-04-01 Thread Cornelius Kölbel
Hello again, ok, it could work this way: import sqlalchemy as sa from alembic import context config = context.config engine = sa.engine_from_config( config.get_section(config.config_ini_section), prefix='sqlalchemy.') engine.echo = False metadata =

Re: [sqlalchemy] change table contents with alembic

2012-04-01 Thread Michael Bayer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 are you running from within an Alembic migration ? Otherwise wondering why you're generating an engine and all that, all of that is a given within Alembic migration scripts. An update is done via the update() method but there's no need to generate