Skip to content

Commit 7c1b082

Browse files
authored
Merge pull request #7338 from mattbrailsford/uc-vendr-upgrade
Added common issue section to Vendr migration guide
2 parents 31de695 + 8b0139c commit 7c1b082

File tree

5 files changed

+106
-1
lines changed
  • 10/umbraco-commerce/upgrading/migrate-from-vendr-to-umbraco-commerce
  • 13/umbraco-commerce/upgrading/migrate-from-vendr-to-umbraco-commerce
  • 14/umbraco-commerce/upgrading/migrate-from-vendr-to-umbraco-commerce
  • 15/umbraco-commerce/upgrading/migrate-from-vendr-to-umbraco-commerce
  • 16/umbraco-commerce/upgrading/migrate-from-vendr-to-umbraco-commerce

5 files changed

+106
-1
lines changed

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

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This guide provides a step-by-step approach to migrating a default Vendr solutio
99
{% hint style="warning" %}
1010
Upgrade to the latest version of Vendr before continuing with the migration.
1111

12-
You can upgrade your installation by installation the [latest version](https://www.nuget.org/packages/Vendr/) on top of the existing one.
12+
You can upgrade your installation by installing the [latest version](https://www.nuget.org/packages/Vendr/) on top of the existing one.
1313
{% endhint %}
1414

1515
You can find details on migrating the Checkout package as well as custom Payment Providers in the [Further Migrations section](./#further-migrations) of this article.
@@ -302,4 +302,25 @@ Any custom payment providers used with Vendr also need to be migrated to Umbraco
302302
[migrate-custom-payment-providers.md](migrate-custom-payment-providers.md)
303303
{% endcontent-ref %}
304304

305+
## Common Issues
306+
307+
### DB Migration Issue Due to Column Constraints
308+
309+
Some users have reported issues running the Umbraco Commerce migrations resuling in an error along the lines of:
310+
311+
````
312+
SqlException: The object 'remainingAmount_default' is dependent on column 'remainingAmount'.
313+
ALTER TABLE ALTER COLUMN remainingAmount failed because one or more objects access this column.
314+
Umbraco.Commerce.Persistence.Migrations.DbUpUmbracoCommerceMigrationsRunner.MigrateUp()
315+
````
316+
317+
The issue generally revolves around the default constraints not having the expected name. To resolve this you should identify the table and the problematic constraint and manually drop the constraint:
318+
319+
```sql
320+
ALTER TABLE [dbo].[umbracoCommerceGiftCard]
321+
DROP CONSTRAINT remainingAmount_default;
322+
```
323+
324+
This will remove the constraint allowing the migrations to run which should re-add the constraints with the correct name.
325+
305326
[^1]: Vendr previously used the `.js` file extension to serve JSON files without having to configure a new `.json` mime-type on the server. This is no longer necessary in Umbraco Commerce so we can now use the correct `.json` file extension.

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,4 +302,25 @@ Any custom payment providers used with Vendr also need to be migrated to Umbraco
302302
[migrate-custom-payment-providers.md](migrate-custom-payment-providers.md)
303303
{% endcontent-ref %}
304304

305+
## Common Issues
306+
307+
### DB Migration Issue Due to Column Constraints
308+
309+
Some users have reported issues running the Umbraco Commerce migrations resuling in an error along the lines of:
310+
311+
````
312+
SqlException: The object 'remainingAmount_default' is dependent on column 'remainingAmount'.
313+
ALTER TABLE ALTER COLUMN remainingAmount failed because one or more objects access this column.
314+
Umbraco.Commerce.Persistence.Migrations.DbUpUmbracoCommerceMigrationsRunner.MigrateUp()
315+
````
316+
317+
The issue generally revolves around the default constraints not having the expected name. To resolve this you should identify the table and the problematic constraint and manually drop the constraint:
318+
319+
```sql
320+
ALTER TABLE [dbo].[umbracoCommerceGiftCard]
321+
DROP CONSTRAINT remainingAmount_default;
322+
```
323+
324+
This will remove the constraint allowing the migrations to run which should re-add the constraints with the correct name.
325+
305326
[^1]: Vendr previously used the `.js` file extension to serve JSON files without having to configure a new `.json` mime-type on the server. This is no longer necessary in Umbraco Commerce so we can now use the correct `.json` file extension.

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,4 +302,25 @@ Any custom payment providers used with Vendr also need to be migrated to Umbraco
302302
[migrate-custom-payment-providers.md](migrate-custom-payment-providers.md)
303303
{% endcontent-ref %}
304304

305+
## Common Issues
306+
307+
### DB Migration Issue Due to Column Constraints
308+
309+
Some users have reported issues running the Umbraco Commerce migrations resuling in an error along the lines of:
310+
311+
````
312+
SqlException: The object 'remainingAmount_default' is dependent on column 'remainingAmount'.
313+
ALTER TABLE ALTER COLUMN remainingAmount failed because one or more objects access this column.
314+
Umbraco.Commerce.Persistence.Migrations.DbUpUmbracoCommerceMigrationsRunner.MigrateUp()
315+
````
316+
317+
The issue generally revolves around the default constraints not having the expected name. To resolve this you should identify the table and the problematic constraint and manually drop the constraint:
318+
319+
```sql
320+
ALTER TABLE [dbo].[umbracoCommerceGiftCard]
321+
DROP CONSTRAINT remainingAmount_default;
322+
```
323+
324+
This will remove the constraint allowing the migrations to run which should re-add the constraints with the correct name.
325+
305326
[^1]: Vendr previously used the `.js` file extension to serve JSON files without having to configure a new `.json` mime-type on the server. This is no longer necessary in Umbraco Commerce so we can now use the correct `.json` file extension.

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,4 +302,25 @@ Any custom payment providers used with Vendr also need to be migrated to Umbraco
302302
[migrate-custom-payment-providers.md](migrate-custom-payment-providers.md)
303303
{% endcontent-ref %}
304304

305+
## Common Issues
306+
307+
### DB Migration Issue Due to Column Constraints
308+
309+
Some users have reported issues running the Umbraco Commerce migrations resuling in an error along the lines of:
310+
311+
````
312+
SqlException: The object 'remainingAmount_default' is dependent on column 'remainingAmount'.
313+
ALTER TABLE ALTER COLUMN remainingAmount failed because one or more objects access this column.
314+
Umbraco.Commerce.Persistence.Migrations.DbUpUmbracoCommerceMigrationsRunner.MigrateUp()
315+
````
316+
317+
The issue generally revolves around the default constraints not having the expected name. To resolve this you should identify the table and the problematic constraint and manually drop the constraint:
318+
319+
```sql
320+
ALTER TABLE [dbo].[umbracoCommerceGiftCard]
321+
DROP CONSTRAINT remainingAmount_default;
322+
```
323+
324+
This will remove the constraint allowing the migrations to run which should re-add the constraints with the correct name.
325+
305326
[^1]: Vendr previously used the `.js` file extension to serve JSON files without having to configure a new `.json` mime-type on the server. This is no longer necessary in Umbraco Commerce so we can now use the correct `.json` file extension.

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,4 +302,25 @@ Any custom payment providers used with Vendr also need to be migrated to Umbraco
302302
[migrate-custom-payment-providers.md](migrate-custom-payment-providers.md)
303303
{% endcontent-ref %}
304304

305+
## Common Issues
306+
307+
### DB Migration Issue Due to Column Constraints
308+
309+
Some users have reported issues running the Umbraco Commerce migrations resuling in an error along the lines of:
310+
311+
````
312+
SqlException: The object 'remainingAmount_default' is dependent on column 'remainingAmount'.
313+
ALTER TABLE ALTER COLUMN remainingAmount failed because one or more objects access this column.
314+
Umbraco.Commerce.Persistence.Migrations.DbUpUmbracoCommerceMigrationsRunner.MigrateUp()
315+
````
316+
317+
The issue generally revolves around the default constraints not having the expected name. To resolve this you should identify the table and the problematic constraint and manually drop the constraint:
318+
319+
```sql
320+
ALTER TABLE [dbo].[umbracoCommerceGiftCard]
321+
DROP CONSTRAINT remainingAmount_default;
322+
```
323+
324+
This will remove the constraint allowing the migrations to run which should re-add the constraints with the correct name.
325+
305326
[^1]: Vendr previously used the `.js` file extension to serve JSON files without having to configure a new `.json` mime-type on the server. This is no longer necessary in Umbraco Commerce so we can now use the correct `.json` file extension.

0 commit comments

Comments
 (0)