Join Slack
Powered by
Do I need to add a @default(0) if it is of type `I...
# orm-help
c
Chris Packett
09/20/2021, 11:01 PM
Do I need to add a @default(0) if it is of type
Int
? Or is there something else I can do?
r
Ryan
09/21/2021, 6:03 AM
@Chris Packett
👋 Is there any existing data in the database? If so, you would need to add it as optional first
Int?
, seed the values and then change it to required for this to work.
✅ 1
c
Chris Packett
09/21/2021, 7:16 PM
Sounds good!
💯 1
Open in Slack
Previous
Next