You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way to check if all necessary fields (not null, without default, without auto_create_time, id) are in patches that are used in insert! statements?
Happened recently to me, that I added an DbEnum to a model, but missed the patch, I was using for inserting. As the program compiled just fine, take me some time to check, why I'm getting an:
Failed to insert z: sqlx error: error returned from database: null value in column "x" of relation "y" violates not-null constraint
The text was updated successfully, but these errors were encountered:
Is there any way to check if all necessary fields (not null, without default, without auto_create_time, id) are in patches that are used in
insert!
statements?Happened recently to me, that I added an
DbEnum
to a model, but missed the patch, I was using for inserting. As the program compiled just fine, take me some time to check, why I'm getting an:The text was updated successfully, but these errors were encountered: