wlvz
Explore posts from serversDTDrizzle Team
•Created by wlvz on 10/22/2023 in #help
db:push constraint is not found in the table
Hi, I'm using planetscale and trying to push to my db but I get the error:
errno: 3821,
sql: 'ALTER TABLE
Subtopic
DROP CONSTRAINT Subtopic_name_key
;',
sqlState: 'HY000',
sqlMessage: target: database.-.primary: vttablet: rpc error: code = Unknown desc = Check constraint 'Subtopic_name_key' is not found in the table. (errno 3821) (sqlstate HY000) (CallerID: yc7blbqh18eaxxd6jg4n): Sql: "alter table Subtopic drop check Subtopic_name_key", BindVars: {REDACTED}
Anyone know how I can fix this?1 replies
DTDrizzle Team
•Created by wlvz on 6/28/2023 in #help
Cannot read properties of undefined (reading 'connectionString')
In my drizzle.config.ts I have the code:
and when I go to run drizzle-kit introspect:mysql I get the error:
I checked my .env.local and DATABASE_URL is defined:
3 replies
DTDrizzle Team
•Created by wlvz on 6/27/2023 in #help
Invalid input Only "mysql2" is available options for "--driver"
I'm trying to run drizzle-kit introspect:mysql by following the docs and I have the config file:
and in my package.json I have:
in my scripts.
But when I go to run "npm run introspect" I get the error:
4 replies
DTDrizzle Team
•Created by wlvz on 6/25/2023 in #help
net::ERR_NAME_NOT_RESOLVED
Hi, I was following the drizzle planetscale starter made by josh (https://github.com/joschan21/drizzle-planetscale-starter) and I came across some erros I didn't know how to fix.
I have the following server component:
and when I try view this I get thousands of console errors (more errors just keep coming, its like an infinite amount of console errors) of just the same thing:
I'm pretty sure this has to do with my database URL, but I could be wrong
My db/index looks like this:
and my drizzle.config.ts looks like this:
my .env looks like this:
with ?ssl={"rejectUnauthorized":true} coming from the docs.
any idea on how to fix this? thanks
3 replies