Changes between Initial Version and Version 1 of Ticket #23749, comment 6


Ignore:
Timestamp:
Dec 26, 2014, 9:59:34 PM (9 years ago)
Author:
Bibhas C Debnath

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23749, comment 6

    initial v1  
    11I just verified that `schema_editor.connection.alias` does return the current connection in use, even when `--database=foobar` is used. We could mention this in the [https://docs.djangoproject.com/en/1.7/topics/migrations/#data-migrations data migration doc] and/or the [https://docs.djangoproject.com/en/1.7/ref/schema-editor/ `SchemaEditor` doc]. `SchemaEditor` doc could use a `Properties` section along with the `Methods` section.
     2
     3Edit: Looks like it's already documented in the `RunPython` section https://github.com/django/django/blob/aa5ef0d4fc67a95ac2a5103810d0c87d8c547bac/docs/ref/migration-operations.txt#L316-L322
Back to Top