Enable ForceCreateDatabase for SqlServer#14234
Conversation
|
We should revert this PR as soon as possible, because this change will now create a new SQL Server database even when An incorrectly configured SQL Server connection string should throw a Umbraco-CMS/src/Umbraco.Infrastructure/Runtime/RuntimeState.cs Lines 218 to 229 in 0c595cc The |
This reverts commit 8d4e55f.
…7612) * Revert #14234 * Make the boot failure message more descriptive when unable to connect to DB * Update src/Umbraco.Infrastructure/Runtime/RuntimeState.cs Co-authored-by: Ronald Barendse <ronald@barend.se> * Revert changes * Obsolete InstallMissingDatabase from V16 --------- Co-authored-by: Ronald Barendse <ronald@barend.se>
Fixes #14110
Notes
ForceCreateDatabaseforSqlServerDatabaseProviderMetadataHow to test
AppSettings.json, I used my localDb like so:(If you do not have a SQL server running, create one first)
Note here that although your server should be running, whatever database you set should not, so here my
testdatabase does not existAppSettings.Json, in theUmbraco/CMSsection