(Postgresql) It appears everywhere I have a constraint in my sqlalchemy code in which there is a unique constaint index alembic --autogenerate wants to remove it.
ie. python code: lead_id = Column(Integer, ForeignKey('crm_lead.id'), unique=True)
DataBase \d: Indexes: "chat_pkey" PRIMARY KEY, btree (id) "chat_lead_id_key" UNIQUE CONSTRAINT, btree (lead_id)
INFO [alembic.autogenerate.compare] Detected removed index 'chat_lead_id_key' on 'chat'
It appears alembic does not consider constraints as indexes, and psql does.