Can I make SQLAlchemy defaults apply in the schema too?

23 Views Asked by At

As of now, I can define a default (for example, in my model for an Integer column I can say default=0) and this default will be respected if I insert from my application through SQLAlchemy. However, in the MySQL schema, the default will be NULL. Is there a way to make the SQLAlchemy defaults be set in the schema too?

0

There are 0 best solutions below