rob.g
rob.g
Explore posts from servers
DTDrizzle Team
Created by rob.g on 1/6/2025 in #help
Moving to migrate after push, missing migrations table
During development I made extensive use of drizzle kit's push command. The problem is that once I went live this worked fine until I need to do my first migration. I added a column to a table today, saved the migration, and then went to run migrate – but because I never officially migrated my first migration, my migrate command fails. Is there anything I can do to get my migrations back in sync? Such as manually creating the migration logs table? Or specificying from which migration migrate should run?
3 replies
TtRPC
Created by rob.g on 12/19/2023 in #❓-help
tRPC on Vercel Serverless without Next?
I would love to be able to use tRPC in a vercel serverless context, but not in a Next app – just the /api folder. The @trpc/next adapter seems to be based on the path expansion properties of next ( /api/[trpc]), so I'm not what the best strategy is for using tRPC in a non-next project on vercel. I had a look at the vercel-edge-runtime example but that seems to be at a lower level (using the raw edge-runtime package) than what the vercel platform expects in the /api folder. If anyone has done this before and has guidance for me I would really appreciate it. Thanks!
2 replies