Mads
Explore posts from serversDTDrizzle Team
•Created by BEEIRL on 8/23/2024 in #help
PlanetScale drizzle-kit push: Cannot drop index: needed in a foreign key constraint
I experience the same.
3 replies
DTDrizzle Team
•Created by theo (t3.gg) on 9/3/2024 in #help
Consistent issues with `drizzle-kit push` on Turso
I appreciate it, thanks Andrew. Let me know if there is anything I can do.
24 replies
DTDrizzle Team
•Created by theo (t3.gg) on 9/3/2024 in #help
Consistent issues with `drizzle-kit push` on Turso
Sorry for hijacking. Any chance we can get Push to work on Planetscale working again @Andrew Sherman 🙂 https://github.com/drizzle-team/drizzle-orm/issues/2599
I can provide a Planetscale database if you need it for testing.
24 replies
DTDrizzle Team
•Created by Mads on 8/31/2024 in #help
notNull and Unique
https://github.com/drizzle-team/drizzle-orm/issues/2599 This seems to be the issue.
7 replies
DTDrizzle Team
•Created by Mads on 8/31/2024 in #help
notNull and Unique
Well that added the unique constraint. But it still complaints about I’m about to add a new unique constraint.
7 replies
DTDrizzle Team
•Created by Mads on 8/31/2024 in #help
notNull and Unique
Moving unique() to the end fixed it:
name: varchar('name', { length: 255 }).notNull().unique(),
7 replies
Metadata for Route
Or maybe be wrong. You want to do a navigation and pass some data along, without setting a query? It seems like the wrong approach. I would look into using setting a useState or maybe definePageMeta like so.
definePageMeta({
pageType: 'Checkout',
})
3 replies
Amateur Looking for Help Making POST to MySQL Using Nuxt 3
Would you be able to post it as a Gist or just add the code in here?
But from just reading your post I would assume your connection to the Nitro backend is fine and gets called when you want it to. It seems like the data it receives could be wrong. I would debug here first, throw in some console logs to see what it catches. Does it receive your body data?
If it does, onto next issue.
Other than that, I would highly recommend Drizzle or Prisma as it would give you some better error logs on what goes wrong.
2 replies
Best practice for using the Route for storing state
I believe what you are talking about is modal routes.
It’s a bit complex to build as there can be many edge cases. Luckily there is a module for that.
https://nuxt-pages-plus.pages.dev/routing/modal-routes/
It is great practice to add /create for creation, this way you can link to the page of creation. Adding a modal is just a style preference.
Best of luck.
3 replies