sql.table.Column: set nullable to false on default

This commit is contained in:
Izalia Mae 2021-11-16 19:01:46 -05:00
parent f03c698ac2
commit 04e7fc258b

View file

@ -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: