Cannot push postgres
I am initiating the db schema useing drizzlekit, but for some reason I can only push once and the second time it throws an error
this is me running "pnpm drizzle-kit push" for the first time
12 Replies
this is me running "pnpm drizzle-kit push" directly after the first time
doesnt anyone know what this means? "TypeError: Cannot read properties of undefined (reading 'toLowerCase')"
Hello, can someone please assist with this bug
@MahmoodKhalil Hi there, this is a known issue in Kit. Could you provide your schema so I could try reproducing the bug?
Thanks a lot in advanced
this is the schema.ts
for context, I am using lucia and I got it from here
https://lucia-auth.com/database/drizzle#postgresql
Lucia
Drizzle ORM
Lucia is an open source auth library that abstracts away the complexity of handling sessions.
Okay, thanks
Could you also tell me what version of ORM and Kit you're using? Pretty sure this affects latest but want to make sure
I am using the latest
"drizzle-kit": "^0.24.1",
"drizzle-orm": "^0.33.0",
@Mario564 sorry for the trouble, I think I fixed it
I was connecting to the db using this method
https://orm.drizzle.team/docs/get-started-postgresql#supabase
Drizzle ORM - PostgreSQL
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
this seems to have issues at this point
When I connected the way mentioned here, it works just fine
@Mario564 let me know if you are still investigating and need help reproducing, I can make a quick repo if that would help
Personally my issue is fixed and I dont need any help
Interesting, seems to be an issue specific to Supabase then
It would be very helpful if you could provide a minimal repo to reproduce the bug
@Mario564
https://github.com/MahmoodKhalil57/drizzlekiterror
1.
2. add .env
3.
4. 5. then again second time should throw an error
4. 5. then again second time should throw an error
GitHub
GitHub - MahmoodKhalil57/drizzlekiterror
Contribute to MahmoodKhalil57/drizzlekiterror development by creating an account on GitHub.
This will likely prove to be very useful. Thanks!
same issue here, in my case it's throwing an error about cascading instead