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

Error: Error in migration engine. Reason: [libs/sql-schema-describer/src/walkers.rs:329:18] foreign key references unknown table: "Game" #4699

Closed
divyenduz opened this issue Oct 30, 2020 · 6 comments · Fixed by prisma/prisma-engines#1713
Assignees
Labels
bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. team/schema Issue for team Schema. topic: prisma migrate dev CLI: prisma migrate dev
Milestone

Comments

@divyenduz
Copy link
Contributor

Command: prisma migrate save --experimental
Version: 2.10.0
Binary Version: af1ae11a423edfb5d24092a85be11fa77c5e499c
Report: https://prisma-errors.netlify.app/report/11820
OS: x64 darwin 19.6.0

JS Stacktrace:

Error: Error in migration engine.
Reason: [libs/sql-schema-describer/src/walkers.rs:329:18] foreign key references unknown table: "Game"

Please create an issue in the migrate repo with
your `schema.prisma` and the prisma command you tried to use 🙏:
https://github.com/prisma/migrate/issues/new

    at ChildProcess.<anonymous> (/Users/larry-park/.config/yarn/global/node_modules/@prisma/cli/build/index.js:418:153)
    at ChildProcess.emit (events.js:314:20)
    at ChildProcess.EventEmitter.emit (domain.js:486:12)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)

Rust Stacktrace:

[libs/sql-schema-describer/src/walkers.rs:329:18] foreign key references unknown table: "Game"
@tomhoule
Copy link
Contributor

This is on MySQL. Not closing this as duplicate yet.

@tomhoule tomhoule transferred this issue from prisma/migrate Dec 17, 2020
@tomhoule tomhoule added bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. team/schema Issue for team Schema. labels Dec 17, 2020
@tomhoule tomhoule self-assigned this Mar 3, 2021
@tomhoule tomhoule added this to the 2.19.0 milestone Mar 3, 2021
@janpio janpio added the topic: prisma migrate dev CLI: prisma migrate dev label Mar 4, 2021
@janpio
Copy link
Member

janpio commented Mar 4, 2021

We have recent reports for this with 2.17

@tomhoule
Copy link
Contributor

tomhoule commented Mar 4, 2021

Yep, this is in the current milestone — I put more context into these crashes last sprint, if they keep happening we'll have some debugging help, because so far we don't know what is causing these.

@tomhoule
Copy link
Contributor

tomhoule commented Mar 5, 2021

Other error report: https://prisma-errors.netlify.app/report/13070 (much more recent)

@tomhoule
Copy link
Contributor

Let's monitor this, but I am pretty sure this is fixed in 2.18.0 — if we see no new reports with 2.18.0, we can close.

@tomhoule
Copy link
Contributor

Discussed with @do4gr and it doesn't happen only in these circumstances, so we'll do the same fix as on sqlite here. PR coming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. team/schema Issue for team Schema. topic: prisma migrate dev CLI: prisma migrate dev
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants