Re: autogenerate revision fails in a multi-db project generated with: `alembic init --template multidb alembic`

2018-08-13 Thread René-paul Debroize
Hello Thank you for your answer. The problem was that the entry db_name was missing from the alembic.ini file. It is not how I configure the engine. However add something like: config.set_main_option("databases", db_names) rather than just fill the db_name var in the env.py file fixed the prob

Re: autogenerate revision fails in a multi-db project generated with: `alembic init --template multidb alembic`

2018-08-10 Thread Mike Bayer
On Fri, Aug 10, 2018 at 6:47 AM, wrote: > Hello > > I'm trying to use alembic to generate a migration file in a multi-db > environment. I first created the project using `alembic init --template > multidb alembic` > and then hack the `env.py` script (didn't touch to `run_migration_online`) > to s

autogenerate revision fails in a multi-db project generated with: `alembic init --template multidb alembic`

2018-08-10 Thread rdebroiz
Hello I'm trying to use alembic to generate a migration file in a multi-db environment. I first created the project using *`alembic init --template multidb alembic`* and then hack the `env.py` script *(didn't touch to `run_migration_online`)* to suit my needs. Here is the error I got after inv