sql.table.Column: set nullable to false on default
This commit is contained in:
parent
f03c698ac2
commit
04e7fc258b
|
@ -34,6 +34,9 @@ class Column(sqlalchemy_column):
|
|||
except KeyError:
|
||||
raise KeyError(f'Invalid SQL data type: {type}')
|
||||
|
||||
if kwargs.get('default'):
|
||||
kwargs['nullable'] = False
|
||||
|
||||
options = [name, type]
|
||||
|
||||
if fkey:
|
||||
|
|
Loading…
Reference in a new issue