Skip to content

Commit

Permalink
Update table_builder.py
Browse files Browse the repository at this point in the history
Apply fix specified in kvesteri#285 (comment)
  • Loading branch information
ew318 committed Nov 29, 2022
1 parent f5a3f80 commit aafca02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlalchemy_continuum/table_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def reflect_column(self, column):
if column_copy.name == self.option('transaction_column_name'):
column_copy.nullable = False

if not column_copy.primary_key:
if not column_copy.primary_key and column_copy.nullable:
column_copy.nullable = True

# Find the right column key
Expand Down

0 comments on commit aafca02

Please # to comment.