Closed gam6itko closed 3 years ago
After updating doctrine/dbal to version 2.7.0 execution of doctrine:schema:update failed with errors below
2.7.0
doctrine:schema:update
[Doctrine\DBAL\Exception\DriverException] An exception occurred while executing 'ALTER TABLE jms_job_related_entities ADD CONSTRAINT FK_E956F4E2BE04EA9 FOREIGN KEY (job_id) REFERENCES jms_jobs (id)': SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint [Doctrine\DBAL\Driver\PDOException] SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint [PDOException] SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint
Downgrade to v2.6.3 solves this problem.
Server: Localhost via UNIX socket Server type: MySQL Server version: 5.7.21 - MySQL Community Server (GPL) Protocol version: 10
Same problem here. Thanks for the tip.
+1
@dkorsak Don't place a comment like '+1' but use reactions instead, preferably on the referenced PR.
After updating doctrine/dbal to version
2.7.0
execution ofdoctrine:schema:update
failed with errors belowDowngrade to v2.6.3 solves this problem.
Server: Localhost via UNIX socket Server type: MySQL Server version: 5.7.21 - MySQL Community Server (GPL) Protocol version: 10