Thanks Michael,
What I ended up doing is, in the end of env.py:
for c in get_clients():
# generate metadata for this client
# generate engine for this client
if context.is_offline_mode():
run_migrations_offline(metadata)
else:
run_migrations_online(metadata, engine)
On Monday, January 5, 2015 12:19:58 PM UTC+1, Dorian Hoxha wrote:
>
> Hi list(),
>
> I'm currently using 1 db / customer. That means in development I test the
> migration with 1 db and on production I want to run the 'upgrade' command
> on each database.
>
> So I just want something like:
>
> def upgrade(connection details or metadata, or metadata + engine)
>
>
> I looked at the env.py:run_migrations_online(), but what does it do,
> migrate OR upgrade ?
>
> Thank you
>
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy-alembic" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.