Hello,

I have a postgres database with tables in two schemas: the public one and a 
custom one. When I run the following, I get a diff, and I have manually 
verified that this exists in the database but lives in a different schema:

  metadata = declarative_base.metadata
  engine = create_engine(dburi)
  mc = MigrationContext.configure(engine.connect())
  diff = compare_metadata(mc, metadata)
  return diff

The tables are defined like this:

class Foo(Base):
  __tablename__ = 'foo'
  __table_args__ = {'schema': 'other_schema'}
  columns


The weird thing is that when I run alembic autogenerate, things are fine, 
all schemas are getting searched. What could I be doing wrong here?

Thanks
-h

-- 
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 sqlalchemy-alembic+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to