Commits

Fayaz Khan  committed b0806bb

added nullable parameter

  • Participants
  • Parent commits 4eb878f

Comments (0)

Files changed (1)

 
 class ImplicitForeignKeyConstraint(ForeignKeyConstraint):
 
-    def __init__(self, columns, refcolumns, primary_key=None, **kwargs):
+    def __init__(self, columns, refcolumns, primary_key=None, nullable=None, **kwargs):
         super(ImplicitForeignKeyConstraint, self).__init__(
                 columns, refcolumns, **kwargs)
         self.primary_key_flag = primary_key
+        self.nullable = nullable
 
     @staticmethod
     def _add_columns(constraint, table):
 	    new_column.key = column
 	    if constraint.primary_key_flag is not None:
 		new_column.primary_key = constraint.primary_key_flag
+            if constraint.nullable is not None:
+                new_column.nullable = constraint.nullable
 	    table.append_column(new_column)