-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Create an empty file migration in Illegal character filename in add-migration #24024
Labels
area-migrations
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
punted-for-6.0
type-bug
Milestone
Comments
@Ali-YousefiTelori Can you provide an example of using a illegal character and give more details on the empty file created? |
@ajcvickers you do not need an example, you can run that command in every project that will create an empty file in the migration folder
|
@bricelam Confirmed empty file is created, for this example with name "20210202212632_to fix error". Output:
|
ajcvickers
added
the
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
label
Dec 11, 2023
ajcvickers
added a commit
that referenced
this issue
Dec 11, 2023
ajcvickers
added a commit
that referenced
this issue
Dec 12, 2023
ajcvickers
added a commit
that referenced
this issue
Dec 12, 2023
* Validate scaffolding migration file names Fixes #24024 * Use TempDirectory class * Skip negative cases on non-Windows. * Exclude more tests from non-Windows platforms
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area-migrations
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
punted-for-6.0
type-bug
When you try to run this command in your Package Manager Console you will get the error to add immigration but you will see the empty file created in your migration folder:
add-migration "to fix error: add column is_deleted"
However, I cannot find commands of add-migration in ef core sources so I cannot fix this bug. if you guys tell me where is source of ef core design or tools maybe we can develop it.
Thank you
The text was updated successfully, but these errors were encountered: