-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Inconsistent "Migrations" folder path when Re-Scaffold #1675
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
Comments
Migrations will be placed in whatever folder the Model Snapshot file is located in, but the default if none yet exist is Migrations. Since they included a snapshot file in Data/Migrations in the new templates, it scaffolds additional migrations there. They should probably change the default to match the templates. In the meantime, a workaround does exist... one of the parameters for the migration add command includes specifying the path. From the ef docs:
To run your intended migration with your output going to the Data/Migrations folder, you'd do the following:
|
@Rdefreitas, thanks for the explanation and workaround! |
@stevesiu glad it worked out for you :) |
This issue is being closed because it has not been updated in 3 months. We apologize if this causes any inconvenience. We ask that if you are still encountering this issue, please log a new issue with updated information and we will investigate. |
Re-Scaffold migrations created "Migrations" folder in project root instead of the original path /Data/Migrations. It still works but a consistent folder path is better.
Steps to reproduce the issue
The text was updated successfully, but these errors were encountered: