Bird
0
0

What file does Prisma generate to track applied migrations in a NestJS project?

easy📝 Conceptual Q1 of 15
NestJS - Database with Prisma
What file does Prisma generate to track applied migrations in a NestJS project?
Aprisma/migrations/_migration_lock
Bprisma/migration_lock.toml
Cprisma/migrations/migration_lock.toml
Dprisma/migrations/migration.sql
Step-by-Step Solution
Solution:
  1. Step 1: Understand Prisma migration tracking

    Prisma uses a special file to track which migrations have been applied to the database.
  2. Step 2: Identify the correct tracking file

    The file named migration_lock.toml inside the prisma/migrations folder is used for this purpose.
  3. Final Answer:

    prisma/migrations/migration_lock.toml -> Option C
  4. Quick Check:

    Migration tracking file = migration_lock.toml [OK]
Quick Trick: Migration lock file is migration_lock.toml in prisma/migrations [OK]
Common Mistakes:
  • Confusing migration SQL files with lock files
  • Assuming migration lock is a .sql file
  • Looking outside prisma/migrations folder

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More NestJS Quizzes