Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 Update Prisma schema to include additional binary target #902

Merged
merged 1 commit into from
Mar 14, 2025

Conversation

sasamuku
Copy link
Member

@sasamuku sasamuku commented Mar 14, 2025

Added runtime to avoid the following error on trigger.dev:

Invalid `prisma.repository.findUnique()` invocation: Prisma Client could not locate the Query Engine for runtime "debian-openssl-3.0.x". This happened because Prisma Client was generated for "darwin-arm64", but the actual deployment required "debian-openssl-3.0.x". Add "debian-openssl-3.0.x" to `binaryTargets` in the "schema.prisma" file and run `prisma generate` after saving it: generator client { provider = "prisma-client-js" binaryTargets = ["native", "rhel-openssl-3.0.x", "debian-openssl-3.0.x"] } The following locations have been searched: /node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/.prisma/client / /Users/hoshino/.local/share/go/src/github.com/liam-hq/liam/node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@prisma/client /.prisma/client /tmp/prisma-engines

Issue

  • resolve:

Why is this change needed?

What would you like reviewers to focus on?

Testing Verification

What was done

🤖 Generated by PR Agent at 646c0ef

  • Added debian-openssl-3.0.x to Prisma binaryTargets.
  • Updated Prisma schema to support Trigger.dev runtime.

Detailed Changes

Relevant files
Enhancement
schema.prisma
Add Debian OpenSSL 3.0.x to Prisma binary targets               

frontend/packages/db/prisma/schema.prisma

  • Added debian-openssl-3.0.x to binaryTargets.
  • Updated Prisma generator configuration for compatibility.
  • +1/-1     

    Additional Notes


    Need help?
  • Type /help how to ... in the comments thread for any questions about Qodo Merge usage.
  • Check out the documentation for more information.
  • Copy link

    changeset-bot bot commented Mar 14, 2025

    ⚠️ No Changeset found

    Latest commit: 646c0ef

    Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

    This PR includes no changesets

    When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

    Click here to learn what changesets are, and how to add one.

    Click here if you're a maintainer who wants to add a changeset to this PR

    Copy link

    vercel bot commented Mar 14, 2025

    The latest updates on your projects. Learn more about Vercel for Git ↗︎

    Name Status Preview Comments Updated (UTC)
    liam-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 14, 2025 9:49am
    liam-erd-sample ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 14, 2025 9:49am
    3 Skipped Deployments
    Name Status Preview Comments Updated (UTC)
    test-liam-docs ⬜️ Ignored (Inspect) Mar 14, 2025 9:49am
    test-liam-erd-sample ⬜️ Ignored (Inspect) Mar 14, 2025 9:49am
    test-liam-erd-web ⬜️ Ignored (Inspect) Mar 14, 2025 9:49am

    Copy link

    supabase bot commented Mar 14, 2025

    Updates to Preview Branch (add_binary_target_for_trigger_dev) ↗︎

    Deployments Status Updated
    Database Fri, 14 Mar 2025 09:42:28 UTC
    Services Fri, 14 Mar 2025 09:42:28 UTC
    APIs Fri, 14 Mar 2025 09:42:28 UTC

    Tasks are run on every commit but only new migration files are pushed.
    Close and reopen this PR if you want to apply changes from existing seed or migration files.

    Tasks Status Updated
    Configurations Fri, 14 Mar 2025 09:42:34 UTC
    Migrations Fri, 14 Mar 2025 09:42:36 UTC
    Seeding Fri, 14 Mar 2025 09:42:36 UTC
    Edge Functions Fri, 14 Mar 2025 09:42:36 UTC

    View logs for this Workflow Run ↗︎.
    Learn more about Supabase for Git ↗︎.

    @sasamuku sasamuku marked this pull request as ready for review March 14, 2025 09:44
    @sasamuku sasamuku requested a review from a team as a code owner March 14, 2025 09:44
    @sasamuku sasamuku requested review from hoshinotsuyoshi, FunamaYukina, junkisai, MH4GF and NoritakaIkeda and removed request for a team March 14, 2025 09:44
    Copy link
    Contributor

    PR Reviewer Guide 🔍

    Here are some key observations to aid the review process:

    ⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
    🧪 No relevant tests
    🔒 No security concerns identified
    ⚡ No major issues detected

    Copy link
    Contributor

    PR Code Suggestions ✨

    No code suggestions found for the PR.

    Copy link
    Member

    @hoshinotsuyoshi hoshinotsuyoshi left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    LGTM! thank you!

    @hoshinotsuyoshi hoshinotsuyoshi added this pull request to the merge queue Mar 14, 2025
    Merged via the queue into main with commit 0ca2e9c Mar 14, 2025
    19 checks passed
    @hoshinotsuyoshi hoshinotsuyoshi deleted the add_binary_target_for_trigger_dev branch March 14, 2025 09:54
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    2 participants