aljawaid/AddressBook

Bug: SQLite Error When Deleting Contact

Closed this issue · 3 comments

When deleting a contact
Internal Error: SQL Error: SQLSTATE[HY000]: General error: 1 foreign key mismatch - "address_book_contacts_task_has_contact" referencing "address_book_contacts_contact"

Originally posted by @PopovIG in #6 (comment)

#6 (comment)

@PopovIG Are you sure making the change of PRIMARY doesnt cause a problem when editig or saving contacts/properties? Because previously it created an issue for MySQL so I removed it for all database types

I just re-tested.
Everything works correctly. At least in the project settings.
I'm not sure if this is the correct solution, but it works =)

Haha I will edit the code and mark it as a solution tonight....until another error is reported lol