Hey guys aim trying to run a migration, and I dont want to give this column any value, any help??
a
Ahmed
10/13/2020, 8:04 AM
@Jos you have one record in your table and not have this field so migration asking what will happen to this record if you don’t give it a default value
My solution to make this table empty
prisma.bus.deleteMany()
j
Jos
10/13/2020, 8:05 AM
Thanks
Jos
10/13/2020, 8:08 AM
I seem to be getting a migration engine failure now
a
Ahmed
10/13/2020, 8:40 AM
What is the error?
r
Ryan
10/13/2020, 9:02 AM
Jos 👋
Could you share what steps did you follow and what was the error you faced?
h
Hebron Watson
10/13/2020, 1:24 PM
Yea, the code of the migration would help along with the error.
Also, it looks like you're running a CLI only operating system, so you may want to send that file to a computer that will allow you to copy/paste into the browser... but whatever works for you as long as you can give us some more info to help you with.
j
Jos
10/13/2020, 1:26 PM
I just dropped my tables, and started migrations a fresh. Everything seems to be working fine now.
Thanks guys