Skip to content
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

update doc about creating a migration (an empty migration to be more precise) #6181

Open
kasir-barati opened this issue Aug 7, 2024 · 0 comments
Labels
docs Documentation creation, updates or corrections

Comments

@kasir-barati
Copy link

kasir-barati commented Aug 7, 2024

Hey guys,

I was wandering around the doc to find out how can I create an empty migration and then I ended up herje under options section I read that it says:

Creates a new migration based on the changes in the schema but does not apply that migration. Run migrate dev to apply migration.

For --create-only flag. So I though I cannot use it for creating an empty migration file. Then I read this Stackoverflow Q&A and tried it. Surprisingly they were right about it; you can create an empty migration without the need to have anything changed in schema.prisma.

Thus I think it is time to revise it to be more accurate. Maybe something like this would do the trick: "Creates a new migration based on the changes in the schema, or just creating an empty one when your schema has not change. Note that this does not apply that migration automatically. Run migrate dev to apply migration."

Any comment/idea/feedback?

Best of luck.

@kasir-barati kasir-barati added the docs Documentation creation, updates or corrections label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation creation, updates or corrections
Projects
None yet
Development

No branches or pull requests

1 participant