1. Luke Plant
  2. south

Commits

Andrew Godwin  committed adb5a9c

Fixed #766 -- Wrong foreign key check on MySQL

  • Participants
  • Parent commits 698311f
  • Branches default

Comments (0)

Files changed (1)

File south/db/mysql.py

View file
         # See if there is a foreign key on this column
         result = 0
         for kind, cname in self.lookup_constraint(db_name, table_name, name):
-            if kind == 'FOREIGN_KEY':
+            if kind == 'FOREIGN KEY':
                 result += 1
                 fkey_name = cname
         if result: