Skip to content
This repository was archived by the owner on Apr 20, 2026. It is now read-only.
This repository was archived by the owner on Apr 20, 2026. It is now read-only.

Foreign key constraint failed on the field: syncs_linearTeamId_fkey (index) #148

Description

@NathanFlurry

Symptoms

When trying to select a GitHub repo, we get this error:

Failed to save sync with error:

Invalid prisma.sync.upsert() invocation:

Foreign key constraint failed on the field: syncs_linearTeamId_fkey (index)

Steps to reproduce

  1. This is our current configuration on synclinear.com (production).
    image
  2. Select a brand new Linear team (not previously linked)
  3. Select a repo (not previously linked)
  4. Receive the error

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdashboardDashboard; sign-up and sync flow; sync removal; configuration

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions