Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

The current command "up" doesn't exist in the new version of Prisma Migrate. #77

Open
telmogoncalves opened this issue Feb 4, 2021 · 7 comments

Comments

@telmogoncalves
Copy link

Hi there, I'm having some issues running pmt init.

The error is the following:

Unknown Error!
Error: Command failed: node "/Users/telmo/Pet/invois/node_modules/@prisma/cli/build/index.js" migrate up --create-db  --experimental --schema="/Users/telmo/.nvm/versions/node/v12.19.0/lib/node_modules/prisma-multi-tenant/node_modules/@prisma-multi-tenant/shared/build/prisma/schema.prisma"
warn @prisma/cli has been renamed to prisma.
Please uninstall @prisma/cli: npm remove @prisma/cli
And install prisma: npm i prisma
Error: The current command "up" doesn't exist in the new version of Prisma Migrate.
Read more about how to upgrade: https://pris.ly/d/migrate-upgrade

I'm using [email protected], [email protected] and [email protected].

The MANAGEMENT_URL I'm setting is postgres://postgres@localhost:5432/management?schema=management.

Thanks ✌️

@andrealmei
Copy link

Same error here!

@solinad21
Copy link

i have the same mistake, help please

@SuFacturaWEB
Copy link

Same error

@solinad21
Copy link

I think this happens because for some reason "pmt init" installs prism components always of the latest version (2.16.x)

How can I control the version of the prisma components to install?

@telmogoncalves
Copy link
Author

No updates on this @Errorname? Appreciate it.

@solinad21
Copy link

here waiting too

@retailify
Copy link

As you can see the migrate up is no more available in the prisma client. I've tested it with the following versions.

"@prisma-multi-tenant/client": "^2.4.2",
"@prisma/client": "^2.18.0",

After that I've set environment variables and started the migration.

$ export PMT_OUTPUT=PMT_TMP
$ export PMT_MANAGEMENT_URL=postgres://postgres:postgres@localhost:5432/management?schema=management

$ npm run prisma migrate dev -- --schema="`pwd`/node_modules/@prisma-multi-tenant/shared/build/prisma/schema.prisma" --preview-feature

Error: The migrations folder contains migration files from an older version of Prisma Migrate which is not compatible.

Same error if I try to run prisma migrate deploy.

I think it's going to be a breaking change.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants