Model(null=False) not working properly in migration #45
Replies: 3 comments 4 replies
-
@rorik302 this is because every time there is a default provided or a server_default is provided, the nullable is Does this make sense to you? In the case of date times, it will automatically generate the dates on save, for instance. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to run a general validation that is also related with the other discussion you opened. If you checkout This is why I haven't merge it yet as it would be nice if you could test it before. |
Beta Was this translation helpful? Give feedback.
-
Release 0.6.0 is now deployed 👍🏼 thank you for your help @rorik302 |
Beta Was this translation helpful? Give feedback.
-
I have model
When I call alembic revision command I have following upgrade code
Although Edgy use null=False by default in the FieldFactory object
P.S. I use custom alembic config, not Edgy
Beta Was this translation helpful? Give feedback.
All reactions