I know this was a while ago but the fix is to first make a change in your schema.prisma file. Add whatever changes you need. Then run the command you are running. It will then notice the changes you made on the file and generate the SQL needed to achieve that change. Hope this helps.

Answer from Alexander on Stack Overflow
Discussions

how to generate a migration file with prisma - Stack Overflow
I tried this in the repository's prisma folder npx prisma migrate dev --name add_finance_tables but it shows this in the terminal ** Environment variables loaded from .env Prisma schema loaded from More on stackoverflow.com
🌐 stackoverflow.com
npx prisma migrate dev --name init from tutorial not working
Once I get to the part in the supabase prisma tutorial where I run the command npx prisma migrate dev --name initnpx prisma migrate dev --name init the terminal gets stuck at: More on answeroverflow.com
🌐 answeroverflow.com
May 29, 2024
`npx prisma migrate dev --name init` fails in starter project
Bug description I was following this instruction in the setup page: "Set up your database (schema migration) Initialize your new database by running a schema migration to create the necessary tables from the sample project. npx prisma mi... More on github.com
🌐 github.com
1
January 9, 2025
Command `npx prisma migrate dev` failing with no error messages
Bug description Well, i started a project here and i was trying to set up my first table on my schema I have already used Prisma in the past and worked fine, but today, on the latest version, it... More on github.com
🌐 github.com
10
May 28, 2024
🌐
Answer Overflow
answeroverflow.com › m › 1245268096017764413
npx prisma migrate dev --name init from tutorial not working - Prisma
May 29, 2024 - Environment variables loaded from .env Prisma schema loaded from prisma/schema.prisma Datasource "db": PostgreSQL database "postgres", schema "public" at "aws-0-us-west-1.pooler.supabase.com:6543" Any ideas what the issue is here? ... Hey @gaurav1998 Can you try using the non-pooled connection string, the one with port 5432 and check? ... No, you can. You just need a direct URL (as in not a pooled connection) for migrations.
🌐
Medium
medium.com › @fardeenmansuri0316 › prisma-for-beginners-setting-up-migrating-and-querying-data-050fc401fa0d
Prisma for Beginners: Setting Up, Migrating, and Querying Data | by Fardeen Mansoori | Medium
February 21, 2025 - model User { id Int @id @default(autoincrement()) email String @unique name String? profile Profile? age Int } Then, migrate these changes to the database so they reflect in your tables: npx prisma migrate dev --name added-age # (For production, ...
Find elsewhere
🌐
GitHub
github.com › prisma › prisma › issues › 26014
`npx prisma migrate dev --name init` fails in starter project · Issue #26014 · prisma/prisma
January 9, 2025 - in the command line, run npx prisma migrate dev --name init · This bug report was generated after receiving an error. The database should be overwritten. I did this because I was trying to add new models and stream changes on the table.
Author   prisma
🌐
GitHub
github.com › prisma › prisma › issues › 24305
Command `npx prisma migrate dev` failing with no error messages · Issue #24305 · prisma/prisma
May 28, 2024 - // Try Prisma Accelerate: https://pris.ly/cli/accelerate-init generator client { provider = "prisma-client-js" } datasource db { provider = "postgresql" url = env("DATABASE_URL") } model Account { id String @id @default(uuid()) @db.Uuid name String email String @unique password String @@map("accounts") } .env: DATABASE_URL="postgresql://root:root@localhost:5432/jwtauth?schema=public" my docker container is up and my table is created, i have already checked those · can someone please help? I don't think there is a way to reproduce this because i think the problem is with my machine · This is what i got when i run npx run migrate dev · No response · // This is your Prisma schema file, // learn more about it in the docs: https://pris.ly/d/prisma-schema // Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
Author   prisma
🌐
DEV Community
dev.to › digitaldrreamer › prisma-migration-stuck-7l5
Prisma migration stuck? - DEV Community
January 7, 2026 - npx prisma migrate dev --name init Environment variables loaded from .env Prisma schema loaded from prisma\schema.prisma Datasource "db": PostgreSQL database "postgres", schema "public" at "aws-0-us-west-1.pooler.supabase.com:5432"
🌐
GitHub
github.com › prisma › prisma › issues › 4748
Prisma `migrate dev` prompts for migration name when running after --create-only · Issue #4748 · prisma/prisma
December 21, 2020 - Then when you run prisma migrate dev --preview-feature to apply the changes (without changing the SQL), you are prompted for a migration name.
Author   prisma
🌐
Medium
medium.com › @panat.siriwong › how-to-sync-prisma-migrations-between-prod-and-test-databases-after-divergence-528bd372d6f4
How to Sync Prisma Migrations Between Prod and Test Databases After Divergence | by Panat Por | Medium
August 18, 2024 - npx prisma migrate dev --name anything_you_want · Result: In prisma/migrations/, you will have two migration files: 0_init,and Anew migration file with a suffix _anything_you_want · Switch back to the Prod database connection. Run a command to apply the new migrations.
🌐
DEV Community
dev.to › whoffagents › prisma-migrations-in-production-zero-downtime-strategies-and-rollback-patterns-3nf1
Prisma Migrations in Production: Zero-Downtime Strategies and Rollback Patterns - DEV Community
April 9, 2026 - -- Now safe to make it required ALTER TABLE users ALTER COLUMN display_name SET NOT NULL; -- Old column can be dropped in a later deploy ALTER TABLE users DROP COLUMN name; # Development: create migration from schema changes npx prisma migrate dev --name add_display_name # Preview what will run in production npx prisma migrate status # Production: apply pending migrations npx prisma migrate deploy
🌐
Nile
thenile.dev › get started › schema migrations › prisma
Prisma - Nile Documentation
December 8, 2025 - mkdir -p prisma/migrations/1_add_posts npx prisma migrate diff \ --from-schema-datasource prisma/schema.prisma \ --to-schema-datamodel prisma/schema.prisma \ --script > prisma/migrations/1_add_posts/migration.sql