add column with default value to another column in migration #4280
Unanswered
hbatalhaStch
asked this question in
Help
Replies: 1 comment 3 replies
-
Why you think the code that works is not the best approach? |
Beta Was this translation helpful? Give feedback.
3 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.
-
I want to add a new column to my database where its default value will reference another column value.
I have tried this code but didn't work:
This code worked:
but I am not if this is the best way to achieve what I want
Beta Was this translation helpful? Give feedback.
All reactions