From 4cb85520302414b1f16d19662cdbfe20da62aa7f Mon Sep 17 00:00:00 2001 From: Soof Golan Date: Tue, 22 Oct 2024 19:38:02 +0300 Subject: [PATCH] use bun for prisma migrations --- scripts/migrate.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/migrate.sh b/scripts/migrate.sh index 74846a4..30ac7b9 100644 --- a/scripts/migrate.sh +++ b/scripts/migrate.sh @@ -9,7 +9,7 @@ if [ -z ${DATABASE_URL+x} ]; then fi # Check if yarn executable is available -if ! command -v npx &>/dev/null; then +if ! command -v bunx &>/dev/null; then echo "NPX CLI could not be found" exit 1 fi @@ -28,7 +28,7 @@ fi function migrate() { echo "Attempting to migrate database" - npx prisma migrate deploy + bunx prisma migrate deploy } # Attempt to migrate database (retry 5 times with 5 second delay)