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 =
-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