Fix legacy ProviderName in sqlite examples #6369
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
While upgrading an Umbraco site using Sqlite from v13 to v14 I kept getting the following error:
System.ArgumentException: The specified invariant name 'Microsoft.Data.SQLite' wasn't found in the list of registered .NET Data Providers.
I was using the exact values from the docs for
umbracoDbDSN_ProviderName
which made this error very confusing.After some source diving and looking at the git history, I found umbraco/Umbraco-CMS#15999 which removed support for the format mentioned in the docs.
This PR updates the examples for version 14 to use the correct format. It may make sense to update the docs for versions 12 and 13 as well as it seems this format has been deprecated for a while.
It also may be worth updating the Breaking Changes section of the Version Specific Upgrades page.
I'm happy to add those suggested changes to this PR if the maintainers would prefer that.
Type of suggestion
Product & version (if relevant)
Umbraco.Cms 14
Deadline (if relevant)
No Deadline