mirror of
https://github.com/django/django.git
synced 2025-07-05 10:19:20 +00:00
[soc2009/multidb] Fixed a bug in the MySQL backend creation where it hadn't been updated for the recent API changes
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11393 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
80ef8a86d1
commit
c7af1de191
@ -48,11 +48,11 @@ class DatabaseCreation(BaseDatabaseCreation):
|
||||
table_output = [
|
||||
' %s %s %s,' %
|
||||
(style.SQL_FIELD(qn(field.m2m_column_name())),
|
||||
style.SQL_COLTYPE(models.ForeignKey(model).db_type(self.connection)),
|
||||
style.SQL_COLTYPE(models.ForeignKey(model).db_type(connection=self.connection)),
|
||||
style.SQL_KEYWORD('NOT NULL')),
|
||||
' %s %s %s,' %
|
||||
(style.SQL_FIELD(qn(field.m2m_reverse_name())),
|
||||
style.SQL_COLTYPE(models.ForeignKey(field.rel.to).db_type(self.connection)),
|
||||
style.SQL_COLTYPE(models.ForeignKey(field.rel.to).db_type(connection=self.connection)),
|
||||
style.SQL_KEYWORD('NOT NULL'))
|
||||
]
|
||||
deferred = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user