Error while running migrations

Hi, so will I was trying to run migrations and the error below is what I am getting. Any experienced this to and was able to resolve it?
_ZodError: [
{
"code": "invalid_union",
"unionErrors": [
{
"issues": [
{
"code": "invalid_union",
"unionErrors": [
{
"issues": [
{
"received": "mysql2",
"code": "invalid_literal",
"expected": "d1-http",
"path": [
"driver"
],
"message": "Invalid literal value, expected \"d1-http\""
}
],
"name": "ZodError"
},
{
"issues": [
{
"received": "mysql2",
"code": "invalid_literal",
"expected": "expo",
"path": [
"driver"
],
"message": "Invalid literal value, expected \"expo\""
}
],
"name": "ZodError"
}
],
"path": [
"driver"
],
"message": "Invalid input"
}
],
"name": "ZodError"
},
{
"issues": [
{
"code": "invalid_union",
"unionErrors": [
{
"issues": [
{
"received": "mysql2",
"code": "invalid_literal",
"expected": "aws-data-api",
"path": [
"driver"
],
"message": "Invalid literal value, expected \"aws-data-api\""
}
]
_ZodError: [
{
"code": "invalid_union",
"unionErrors": [
{
"issues": [
{
"code": "invalid_union",
"unionErrors": [
{
"issues": [
{
"received": "mysql2",
"code": "invalid_literal",
"expected": "d1-http",
"path": [
"driver"
],
"message": "Invalid literal value, expected \"d1-http\""
}
],
"name": "ZodError"
},
{
"issues": [
{
"received": "mysql2",
"code": "invalid_literal",
"expected": "expo",
"path": [
"driver"
],
"message": "Invalid literal value, expected \"expo\""
}
],
"name": "ZodError"
}
],
"path": [
"driver"
],
"message": "Invalid input"
}
],
"name": "ZodError"
},
{
"issues": [
{
"code": "invalid_union",
"unionErrors": [
{
"issues": [
{
"received": "mysql2",
"code": "invalid_literal",
"expected": "aws-data-api",
"path": [
"driver"
],
"message": "Invalid literal value, expected \"aws-data-api\""
}
]
`
4 Replies
Luxaritas
Luxaritas4w ago
I think we actually discussed this yesterday - just remove the “driver” key from your drizzle config. You don’t need it for mysql2!
Tamarah
TamarahOP4w ago
funny enough... it wasn't there but when I tested it again today, I got an error that was asking for driver. So I added the driver which led to this new error. I just removed the driver, restarted the server and tested... now it is working I just might need more time getting comfortable with drizzle I guess. Thank you.
Luxaritas
Luxaritas4w ago
If that pops up again, do post here and I can take a look!
Tamarah
TamarahOP4w ago
okay, no problem. Thank you so much
Want results from more Discord servers?
Add your server