Skip to content

Commit

Permalink
use bun for prisma migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
soof-golan committed Oct 22, 2024
1 parent a00f450 commit 4cb8552
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/migrate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 4cb8552

Please sign in to comment.