Skip to content

Commit c66abc5

Browse files
authored
data type fix
1 parent 249d0db commit c66abc5

File tree

1 file changed

+6
-2
lines changed
  • 13/umbraco-commerce/upgrading/migrate-from-vendr-to-umbraco-commerce

1 file changed

+6
-2
lines changed

13/umbraco-commerce/upgrading/migrate-from-vendr-to-umbraco-commerce/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,13 @@ WHERE propertyEditorAlias LIKE 'Vendr.%'
218218
4. Swap the Vendr variants editor for the Umbraco Commerce variants editor in the block list data entry:
219219

220220
```sql
221+
-- the nText field type for textValue is deprecated so we need to change it to nvarchar(max) first
222+
ALTER TABLE umbracoPropertyData
223+
ALTER COLUMN textValue nvarchar(max) NULL;
224+
221225
UPDATE umbracoPropertyData
222-
SET textValue = REPLACE(textValue, 'Vendr.VariantsEditor', 'Umbraco.Commerce.VariantsEditor')
223-
WHERE textValue LIKE '%Vendr.VariantsEditor%';
226+
SET textValue = REPLACE(textValue, N'Vendr.VariantsEditor', N'Umbraco.Commerce.VariantsEditor')
227+
WHERE textValue LIKE N'%Vendr.VariantsEditor%';
224228
```
225229

226230
5. Swap Vendr price/amount adjustments to Umbraco Commerce price/amount adjustments:

0 commit comments

Comments
 (0)