hello folks, i'm getting this error... what could...
# prisma-migrate
m
hello folks, i'm getting this error... what could be the issue?
Copy code
$ prisma migrate down --experimental
Error: The current command "down" doesn't exist in the new version of Prisma Migrate.
Copy code
$ prisma -v
Environment variables loaded from .env
prisma                  : 3.9.2
@prisma/client          : 3.9.2
Current platform        : windows
Query Engine (Node-API) : libquery-engine bcc2ff906db47790ee902e7bbc76d7ffb1893009 (at ..\..\node_modules\@prisma\engines\query_engine-windows.dll.node)
Migration Engine        : migration-engine-cli bcc2ff906db47790ee902e7bbc76d7ffb1893009 (at ..\..\node_modules\@prisma\engines\migration-engine-windows.exe)
Introspection Engine    : introspection-core bcc2ff906db47790ee902e7bbc76d7ffb1893009 (at ..\..\node_modules\@prisma\engines\introspection-engine-windows.exe)
Format Binary           : prisma-fmt bcc2ff906db47790ee902e7bbc76d7ffb1893009 (at ..\..\node_modules\@prisma\engines\prisma-fmt-windows.exe)
Default Engines Hash    : bcc2ff906db47790ee902e7bbc76d7ffb1893009
Studio                  : 0.457.0
m
You're using legacy prisma migrate commands which were deprecated a long time ago. https://www.prisma.io/docs/concepts/components/prisma-migrate
n
Hey Mushfau 👋, It seems you are referring to this down command which was part of Legacy Prisma Migrate. In the General Availability there is no down command available. However you can refer to this GitHub issue which will guide you on how you can rollback your migrations. It uses the new
prisma db execute
and
prisma migrate diff
commands which are available in preview from version 3.9.0. Here are the guides for these commands - db execute and migrate diff. Please let me know if you face any issues.
👀 1