Generated migrations with null safety #1185
Answered
by
simolus3
MiguelSOliveira
asked this question in
Q&A
-
Hi, I'm trying to migrate my app to null safety but I'm getting the following error:
I think it's because each generated migration has the following:
Is it possible to generate these files again with null safety? I have each of these migrations' json schema files. Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
simolus3
May 11, 2021
Replies: 1 comment 2 replies
-
You can add the |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
MiguelSOliveira
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can add the
--null-safety
flag tomoor_generator schema generate
to generate null-safe code. I'll take a look at generating null safe code by default if the surrounding package is opted in.