-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Tools: Add -WhatIf parameter to Update-Database #1775
Comments
Maybe |
|
Ah, okay, I didn't know about that. It's a bit of an odd name. 😄 I think the DNX commands use lower or possibly camelCase, so I guess it'll be |
+1 this would be so useful. Also agree with using the -WhatIf (even if in lowercase) as its familiar from PowerShell. |
bicep also uses |
Hello, any updates? |
No updates. Today you can use Get-Migration to see which migrations are pending and Script-Migration to see the SQL they'll generate. |
This is still not helpfull using the Script-Migration to see the SQL, because it don't show the script for only not applyied migration, it shows the script starting from a migration I have to provide, so on large teams where we frequently deploy and you have a scenario where you have some migrations that are applied and some there are not mixed, you have the create a program to see all peding script. Would be very helpfull to see a --dry-run option, since EF already does it internally to apply only the pending. My example is something like this: 1231(Timestamp)_Migration1.cs -- Applied
1232(Timestamp)_Migration2.cs -- NOT Applied
1233(Timestamp)_Migration3.cs -- Applied
1234(Timestamp)_Migration4.cs -- NOT Applied
1235(Timestamp)_Migration5.cs -- Applied I want to see only the "NOT Applied" scripts, I need to run 2 scripts in this case, but as it grows this become less efficient |
This would show the migrations that would be applied to the database.
This functionality is also related to #577.
The text was updated successfully, but these errors were encountered: