In addition to setting the database initializer to null, as per @stevenrcfox, you might also want to look at generating a script to provide to a DBA to update the database. This is often useful in situations where the DBA has review processes they need to go through and needs to see and potentially modify the SQL before executing it.
To achieve this you can generate a script from package manager console, or migrate.exe, that that will move a database between two specific migrations. An example, direct from get-help update-database -detailed:
C:\PS>Update-Database -Script -SourceMigration Second -TargetMigration First # Generate a script to migrate the database from a specified start migration # named "Second" to a specified target migration named "First"
Alternatively, if you don't know what version the production database is currently sitting at, you can generate a mega-script that will take care of upgrading from any version. Again, from the Entity Framework NuGet powershell command help:
C:\PS>Update-Database -Script -SourceMigration $InitialDatabase # Generate a script that can upgrade a database currently at any version to the latest version. # The generated script includes logic to check the __MigrationsHistory table and only apply changes # that haven't been previously applied.
A DBA might not like the results of this last one, though, due to its length and lots of irrelevant script given that the production database is only likely to need the last few migrations.