Open Wiggee11 opened 1 month ago
It definitely sounds like the migrations have failed to run. Maybe try clearing the umbracoCommerceMigrations
table to get the migrations to re-run. They should all be written defensively so it should be fine for them to run again.
Unfortunately that hasn't done anything. Still get the database configuration failed error.
Microsoft.Data.SqlClient.SqlException (0x80131904): Invalid column name 'defaultLocationId'.
Invalid column name 'measurementSystem'.
The umbracoCommerceMigrations
table remains empty so no migrations completed.
It looks like the first v13 migration to be run is Umbraco.Commerce.Persistence.SqlServer.Migrations.Implement.v13_01_00.M20231031105000_CreateLocationTable.sql
which seems to tie in with the failed defaultLocationId
column.
Describe the bug I am trying to upgrade an Umbraco 10 project to Umbraco 13, which includes Umbraco.Commerce. I have been able to upgrade the solution and packages and the solution builds, but the migration fails, with a
Database configuration failed
error. By turning off unattendedUpgrade I have been able to get more detailed logs.Database configuration failed SourceContext = Umbraco.Cms.Infrastructure.Migrations.Install.DatabaseBuilder
I also get info logs about database schema validation errors:
I have installed a clean Umbraco 10 solution with a few packages (Contentment, Skybrud.Redirects, Umbraco Forms) and Umbraco.Commerce 10, and been able to upgrade that DB to Umbraco 13. Pointing this clean upgraded solution to a backup of my v10 database and it upgrades, builds and runs fine.
I don't know whether this is a problem with custom code/something with the DB as I am able to upgrade a clean solution.
Umbraco Commerce version: Umbraco.CMS 10.8.3 -> 13.4.0 Umbraco.Commerce 10.0.5 -> 13.1.6 Umbraco.Commerce.Checkout 10.0.0 -> 13.1.1 Umbraco.Commerce.PaymentProviders.Klarna 10.0.1 -> 13.1.0 Umbraco.Commerce.PaymentProviders.PayPal 10.0.0 -> 13.1.1