Comments (6)

Anonymous

The workaround works fine, thanks.

However, I noticed that the explicit configure_mappers() call is now required, otherwise Base.metadata.create_all() will miss constraints declared using this workaround. Actually, it's weirder than that, because I found a case when __extra_table_args__ was a tuple of a CHECK and a UNIQUE constraint, the CHECK constraint was created, the UNIQUE constraint was not. Calling configure_mappers() before Base.metadata.create_all() seems to sort things out. I've used 0.8.0 for testing.