Skip to content

[5.x]: After Update Migration with foreign_key constraint of matrix blocks fails integrity constraint violation #14839

@LeoWie93

Description

@LeoWie93

What happened?

Description

We are trying to run the Database Migrations after Upgrading a Project to Craft 5.

Steps to reproduce

  1. Update our Craft 4 Project to Version 5.0.X

Expected behavior

The migration runs without an error. => succesfully migrates matrix blocks

Actual behavior

image

Craft CMS version

5.0.x

PHP version

8.2

Operating system and version

Linux

Database type and version

Mysql 8.0.36

Image driver and version

No response

Installed plugins and versions

  • redactor
  • typed link field

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions