1. Konstantine Rybnikov
  2. south with list of databases under migration support


Andrew Godwin  committed e8ff464

Fixed #952: Do comparisons on columns case-insensitively.

  • Participants
  • Parent commits dca268e
  • Branches default

Comments (0)

Files changed (1)

File south/db/generic.py

View file
  • Ignore whitespace
             raise ValueError("Cannot get constraints for columns during a dry run.")
         if columns is not None:
-            columns = set(columns)
+            columns = set(map(lambda s: s.lower(), columns))
         db_name = self._get_setting('NAME')
             for kind, cname in constraints:
                 if kind == type:
                     cnames.setdefault(cname, set())
-                    cnames[cname].add(col)
+                    cnames[cname].add(col.lower())
         for cname, cols in cnames.items():
             if cols == columns or columns is None: