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

Feature request - migrations add <automaticIncrementalName> #10413

Closed
kmolerov opened this issue Nov 28, 2017 · 2 comments
Closed

Feature request - migrations add <automaticIncrementalName> #10413

kmolerov opened this issue Nov 28, 2017 · 2 comments

Comments

@kmolerov
Copy link

kmolerov commented Nov 28, 2017

Current bahaviour:
dotnet ef migrations add -> Missing required argument '<NAME>'.

Required behaviour:
dotnet ef migrations add -> Create new migration based on previous name with autoincremented index.
example:
Previous migration name is "migration_12". After execution command "dotnet ef migrations add", new migration is created with name "migration_13".

Use case - Business model is under development and is constantly changing. User is going to make hundreds of changes in a couple of days. User wants to continuously sync model with db schema.
There is no need to make migrations with semantic naming.

Note: Is there a better alternative to automatically sync db schema to the data model without creating migration?

@bricelam
Copy link
Contributor

Looking for #3053?

@ajcvickers
Copy link
Contributor

@kmolerov As @bricelam says, the underlying motivation here seems a lot like #3053, so I'm going to close this as a duplicate. However, any solution to #3053 is likely to involve not creating explicit migrations rather than using auto-incrementing IDs. For explicit migrations, we think that using a semantic name is better practice that ID numbers. This doesn't mean you can't use numbers manually, but rather that we won't promote it by building it into the API.

@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants