#Programmatic access to migration

2 messages · Page 1 of 1 (latest)

jolly surge
#

I started using Prisma migrations for testing, such that I am resetting and seeding my database between tests. Locally, this runs great! Unfortunately, in CI, where I am running on a single processor, this is causing timeouts.

If I could trigger the migration reset from within the NodeJS event loop, it would all work fine. As it is, I have to execute the CLI using child_process, which works outside of the single-thread event-loop.

Is there a better way to accomplish what I am trying to do?

oak parrotBOT
#

Howdy, friend! I'm the Prisma AI Help Bot — fast answers from me, or slow, hand-crafted wisdom from a dev? Choose wisely, adventurer.