Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Plugin Installation Failing for SQLite Database Type #6

Closed
aljawaid opened this issue Jul 3, 2023 · 5 comments
Closed

Bug: Plugin Installation Failing for SQLite Database Type #6

aljawaid opened this issue Jul 3, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@aljawaid
Copy link
Owner

aljawaid commented Jul 3, 2023

  • v1.1
  • Sqlite

Found in debug.log:
[2023-07-03 09:56:01] [critical] AddressBook: Unable to migrate schema for the plugin: AddressBook => SQLSTATE[HY000]: General error: 1 near "AUTO_INCREMENT": syntax error

Originally posted by @PopovIG in #5 (reply in thread)

@aljawaid aljawaid self-assigned this Jul 3, 2023
@aljawaid aljawaid added the bug Something isn't working label Jul 3, 2023
@aljawaid
Copy link
Owner Author

aljawaid commented Jul 3, 2023

Hi @PopovIG can you make a manual edit to the schema file and test the change for me to see if it works?

@PopovIG
Copy link

PopovIG commented Jul 3, 2023

I tried version 1.2 - the plugin was displayed and working in the project settings.
But there are a couple of new bugs:

  1. When opening a task
    Internal Error: SQL Error: SQLSTATE[HY000]: General error: 1 ambiguous column name: contacts_id
  2. 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"

@aljawaid
Copy link
Owner Author

aljawaid commented Jul 3, 2023

What do you mean when opening a task? After you assigned contacts to it?

@PopovIG
Copy link

PopovIG commented Jul 3, 2023

No, just after clicking on the task on the board

image

@PopovIG
Copy link

PopovIG commented Jul 3, 2023

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"

I changed "contacts_id INTEGER KEY NOT NULL" to "contacts_id INTEGER PRIMARY KEY NOT NULL" in Sqlite.php, it fixed this problem

aljawaid added a commit that referenced this issue Jul 4, 2023
- fixes database errors, linking/delinking tasks
- #9
- #6
aljawaid added a commit that referenced this issue Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants