Plans to add a New-DatabaseMigration cmdlet?
PeterDanielsCRB
Posts: 126 Bronze 3
It would be helpful to have a powershell cmdlet that could be used to generate new simple migrations rather than clicking thru a UI. Any plans?
I see a related uservoice: https://redgate.uservoice.com/forums/267000-sql-change-automation/suggestions/14435526-allow-the-sync-cmdlet-or-similar-to-generate-an
and I commented on it.
I see a related uservoice: https://redgate.uservoice.com/forums/267000-sql-change-automation/suggestions/14435526-allow-the-sync-cmdlet-or-similar-to-generate-an
and I commented on it.
Tagged:
Answers
Product Manager
Redgate Software
Product Manager
Redgate Software
$sourceDB = New-DatabaseConnection [...]
New-DatabaseMigration -InputObject <PathToSqlProjectFile> -Source $sourceDB
Source DB could also be the default dev DB from the sql proj file. It would behave similar to the process that happens in SSMS when we "generate migration(s)".