Tamarah
Tamarah
DTDrizzle Team
Created by Tamarah on 10/25/2024 in #help
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\""
}
]
`
7 replies
DTDrizzle Team
Created by Tamarah on 10/23/2024 in #help
Migration generation error
Hey everyone, I am new to drizzle and my use case is drizzle with mysql database using plain javascript. I have gone over the Drizzle documentations, as well as posts online to tailor the implementations to my use case. When I ran the drizzle-kit migrate command, I got the error
No config path provided, using default 'drizzle.config.js'
No config path provided, using default 'drizzle.config.js'
without creating the migration folder except for one time out of the many times i have ran that command. However, i deleted the migration folder that one time it worked because i thought something went wrong and wanted to retry. But now, I just keep getting this error with no other information to work with on sorting out the issue
32 replies