Replies: 2 comments
-
Ha! Here I think you're getting burned by YAML's parsing of NULL into Python's native null type If you want to pass the value through unchanged you need to send it as a string: - table_name: sample_table
type: update_columns
columns:
- column_name: foo_fk_column
type: literal
value: "NULL" |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks! Another option i tried that worked was using a before and update script.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, i'm trying to set an integer foreign key field to NULL with a column update.
i've tried the following changes to my strategy file, both of which produce exceptions.
..."foo_fk_column" = None;
The other option
setting the column update type to
empty
sets the integer foreign key field to a string literal.What is the proper way to set a nullable integer field NULL?
Beta Was this translation helpful? Give feedback.
All reactions