You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
doctrine migrations:migrate in current doctrine version:
up:
ALTER TABLE Catalog_Field ADD CONSTRAINT FOREIGN KEY (groupId) REFERENCES Catalog_FieldGroup(id)
down:
ALTER TABLE Catalog_Field DROP FOREIGN KEY
should be:
up:
ALTER TABLE Catalog_Field ADD CONSTRAINT Catalog_Field_ibfk_2 FOREIGN KEY (groupId) REFERENCES Catalog_FieldGroup(id)
down:
ALTER TABLE Catalog_Field DROP FOREIGN KEY catalog_field_ibfk_2
The text was updated successfully, but these errors were encountered:
Doctrine builds wrong schema for foreign keys in mysql migrations.
My entities:
/**
/
class Catalog_Model_Field
{
/*
*
*/
private $group;
}
/**
/
class Catalog_Model_FieldGroup
{
/*
*
*/
private $id;
}
doctrine migrations:migrate in current doctrine version:
up:
ALTER TABLE Catalog_Field ADD CONSTRAINT FOREIGN KEY (groupId) REFERENCES Catalog_FieldGroup(id)
down:
ALTER TABLE Catalog_Field DROP FOREIGN KEY
should be:
up:
ALTER TABLE Catalog_Field ADD CONSTRAINT
Catalog_Field_ibfk_2
FOREIGN KEY (groupId) REFERENCES Catalog_FieldGroup(id)down:
ALTER TABLE Catalog_Field DROP FOREIGN KEY
catalog_field_ibfk_2
The text was updated successfully, but these errors were encountered: