Closed LHammonds closed 4 years ago
It doesn't look like tbl_familyskill has a primary key. Create a primary key on (Family_ID, Skill_ID) and it should resolve the issue.
omg, cannot see the tree because of the forest. It works now. Thanks for the quick rely.
Records can be added to the transient / joining table (tbl_FamilySkill) when creating a new record (tbl_Family) or editing an existing (tbl_Family) record by adding related Skills (placing checks in Skills checkboxes). Any attempt to remove related Skills (unchecking the boxes and then saving) will fail. It will also fail upon trying to delete the Family record. The database user has all permissions to the database including delete.
Error in the apache log (replaced backticks with single quotes to avoid github formatting issue):
Enabling the general log on MariaDB and capturing the query that breaks shows the same query noted in the apache log: (replaced backticks with single quotes to avoid github formatting issue)
I get the same issue on Ubuntu Server 18.04 (MariaDB 10.5.5, Apache 2.4.29, PHP 5.6.40, Xataface 2.1.2) and 20.04 (MariaDB 10.5.5, Apache 2.4.41, PHP 7.4.3, Xataface 2.1.2)
Here are the table definitions (replaced backticks with single quotes to avoid github formatting issue):
This is in the fields.ini
And this is the relationships.ini