Cannot Set Foreign key to allowNull : true when it was Initialised with allowNull: false #16049
Answered
by
ephys
prkhrv
asked this question in
Help & Questions
-
I have a Table initial
Now I want to set allowNull: true. But it's not letting me to create a row with physician_id : null . Do I need to drop the table ? |
Beta Was this translation helpful? Give feedback.
Answered by
ephys
May 23, 2023
Replies: 1 comment 2 replies
-
You need to migrate your table, edit it manually, or drop your table if you're not yet in production and don't care about your data |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
prkhrv
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to migrate your table, edit it manually, or drop your table if you're not yet in production and don't care about your data