Skip to content

Doctrine migrations fail in Flow 6 #45

Open
@robertlemke

Description

Using a basic Flow distribution (6.x) with one custom package (which requires sandstorm/usermanagent), and an empty database doctrine:migrate will fail:

SQLSTATE[HY000]: General error: 1005 Can't create table `weclapp-importer`.`sandstorm_usermanagement_domain_model_user` (errno: 150 "Foreign key constraint is incorrectly formed")

caused by this query:

ALTER TABLE sandstorm_usermanagement_domain_model_user ADD CONSTRAINT FK_5DEB8A977D3656A4 FOREIGN KEY (account) REFERENCES typo3_flow_security_account (persistence_object_identifier)

At that time of migration, the database contains the typo3_flow_security_account table, but for some reason, the foreign key constraint is not accepted.

Tested with MariaDB 10.2.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions