Skip to content
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

Data updates when changing default languages #3196

Closed
Shazwazza opened this issue Oct 8, 2018 · 1 comment

Comments

@Shazwazza
Copy link
Member

commented Oct 8, 2018

child of umbraco/Umbraco.Private#14

A continuation of the work done in umbraco/Umbraco.Private#222

When changing a content type from variant to invariant we don't have to update all of the invariant names because we keep the invariant names in sync with the default language names. But If the default language is changed, this means that all invariant name values stored for variant content will be in the wrong language.

We will need to run a bulk update statement when a default language is changed to copy all "name" data for any variant doc type to the invariant storage. This means that the invariant names will still be in sync with the variant names of the default language. (don't worry about property data, this is taken care of when changing a doc type from invariant/variant)

Bulk SQL Updates don't work in SQL CE but they do work in SQL Server (and probably MySql). An example is here: 304c874#diff-d367ba2cc01d9cb6029082d5bae70f1fL606 but for SQL CE we need to do this row by row.

@nul800sebastiaan

This comment has been minimized.

Copy link
Member

commented Feb 12, 2019

Looking at related issues this seems all done at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.