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
Unable to reset CockroachDB for table with foreign key relationship on v22.2. #17055
Comments
CockroachDB developer here: This seems to be another manifestation of #16909 I see that the migration file already has
|
Note: I could not reproduce the same error message with the repo provided, I only get
|
@Jolg42 could you confirm you're on the reset-repo branch? It should break on the subsequent migration, |
I'm experiencing this issue, with an empty database and 0 migrations. The first
Afaik, |
@ShavaShav Could you open a new issue? It would be interesting if you go get a SQL dump to verify that that database is really empty. |
Bug description
On CRDB v22.2, it is not possible to run
npx prisma migrate reset
for a database that has a table with a foreign key relationship:It works as expected on CRDB v22.1.x.
How to reproduce
Pull down this repo: https://github.com/AndrewSouthpaw/crdb-prisma-migration-repro-2022-12-12/tree/andrew/reset-repro. Be sure to use the branch
reset-repro
.Instructions in the README to repro. Instructions here to download the CRDB binary and you could run the cluster with:
Expected behavior
npx prisma migrate reset
works normally, but instead it errors out.Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: