Legend:

You can take a look at the couple commits I've added. The latest one makes use of `connection.qname` as the primary means of determining the qualified name. This uses a new router method `schema_for_db`. I have not updated any tests yet, but for my project locally with multiple schemas all the `sql*` commands are working nicely.

1

You can take a look at the couple commits (https://github.com/cbmi/django/commits/db_schemas) I've added. The latest one makes use of `connection.qname` as the primary means of determining the qualified name. This uses a new router method `schema_for_db`. I have not updated any tests yet, but for my project locally with multiple schemas all the `sql*` commands are working nicely.