Skip to content

Package migration won't run #19503

Open
@mirivhbv

Description

@mirivhbv

Which Umbraco version are you using?

15.4.2

Bug summary

I've created a sample package and added a migration to it. When running 'Run pending migrations' through the UI, I get the error 'No migration plans were found for that package.'

With a little investigation, I found that PackageMigrationRunner.RunPendingPackageMigrations checks the packageName against the planName (_packageMigrationPlans dictionary's key is the plan name rather than the package name), and since the plan and package names differ, it fails at this condition.

Specifics

No response

Steps to reproduce

  1. Add a new package with migration plan
  2. Click 'Run pending migrations' under Packages > Installed tab.

Expected result / actual result

  • Successfully running of migrations.
  • Failing to find a migration to run.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions