-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New version is giving this error 'null value in column "deleted_by_cascade" violates not-null constraint' #208
Comments
Thanks for the report, could you show me the migration generated to add this column? It should be set to False by default. |
sorry, just downgrade the version but looks like its set to None instead of False
…On Wed, Jun 8, 2022 at 3:11 PM Gagaro ***@***.***> wrote:
Thanks for the report, could you show me the migration generated to add
this column? It should be set to False by default.
—
Reply to this email directly, view it on GitHub
<#208 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADSZDP2P6MCBCO4FYUGGDRLVOBTDTANCNFSM5XD37EQA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
*Jatinder Singh (Senior Software Eng.)*
Mobile: +91 7696312994
Email: ***@***.***
|
@Gagaro Here is the migration file generated in my project
|
Thanks for the migration file. That's strange, you do have |
You never got a response, but my team just ran into this also.
It appears Django removes the default values from the table after the initial column creation. This is "normal" behavior. I suspect the code in the library (or in our code) is explicitly setting the value to None, so the Django field default is not applied. I will investigate further. UPDATE: |
null value in column "deleted_by_cascade" violates not-null constraint
The text was updated successfully, but these errors were encountered: