Skip to content

SQLite platform does not support alter foreign key #5570

@VincentLanglet

Description

@VincentLanglet

Bug Report

Q A
Version 3.4.0

Summary

Test on the ci of https://github.com/sonata-project/EntityAuditBundle are not working.
I tried with dbal 3.3.8 and it works, with 3.4.0 I get

Doctrine\DBAL\Exception: Sqlite platform does not support alter foreign key

The regression was introduced by #5427 cc @morozov
Adding

public function supportsForeignKeyConstraints()
{
    return false;
}

fix the issue.

How to reproduce

You can clone https://github.com/sonata-project/EntityAuditBundle
run composer install
and then make test

Expected behaviour

No error

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions