I need to write an application using SQLAlchemy + Flask AppBuilder. Currently I use 2 databases and it works well(with SQLALCHEMY_BINDS in config, separate metadata and bind_key parameter).
When I am trying to add tables with the same names to the different databases the error occured:
'sqlalchemy.exc.InvalidRequestError: Table 'name_1' is already defined for this MetaData instance. Specify 'extend_existing=True' to redefine options and columns on an existing Table object.'
How can I manage the problem with 2 databases? Will be there any problems with Alembic using 2 databases simultaneously?