1. Andrew Godwin
  2. south

Commits

and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8  committed 4b5f6a5

Make NOT NULL actually work. Patch from Andy McCurdy.

  • Participants
  • Parent commits 81a256b
  • Branches default

Comments (0)

Files changed (1)

File db/generic.py

View file
         params = (
             qn(column_name),
             self.get_type(type_name, type_param),
-            (unique and "UNIQUE " or "") + (null and "NULL" or ""),
+            (unique and "UNIQUE " or "") + (null and "NULL" or "NOT NULL"),
             related_to and ("REFERENCES %s (%s) %s" % (
                 related_to[0],  # Table name
                 related_to[1],  # Column name