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

Upgrade problem #2136

Closed
tudor2k3 opened this issue Sep 14, 2021 · 7 comments
Closed

Upgrade problem #2136

tudor2k3 opened this issue Sep 14, 2021 · 7 comments

Comments

@tudor2k3
Copy link

 After upgrading to latest git, i get the following errors at first login:

Query: ALTER TABLE customerassignments DROP CONSTRAINT customerassignment
Error: Cannot drop index 'customerassignment': needed in a foreign key constraint

Query: CREATE TRIGGER customerassignments_insert_trigger BEFORE INSERT ON customerassignments FOR EACH ROW BEGIN IF NEW.startdate = 0 THEN SET NEW.startdate = UNIX_TIMESTAMP(); END IF; END
Error: You do not have the SUPER privilege and binary logging is enabled (you might want to use the less safe log_bin_trust_function_creators variable)

 Running the first query manually works, the second gives an sql syntax error.
 MariaDB 10.5.12, PHP 7.4.23
@chilek
Copy link
Owner

chilek commented Sep 14, 2021

What displays the following SQL query:

SELECT * FROM dbinfo;
  1. Before update?
  2. After update?

@tudor2k3
Copy link
Author

tudor2k3 commented Sep 14, 2021 via email

@interduo
Copy link
Collaborator

interduo commented Feb 5, 2022

@tudor2k3 is this issue is actual?

@tudor2k3
Copy link
Author

tudor2k3 commented Feb 5, 2022 via email

@interduo
Copy link
Collaborator

interduo commented Feb 6, 2022

Maybe You've got something messed up in DB in taxes table? Check it with doc/lms.mysql.

Also please migrate your db to postgresql. MySQL is not well tested.

@tudor2k3
Copy link
Author

tudor2k3 commented Feb 6, 2022 via email

@interduo
Copy link
Collaborator

interduo commented Feb 6, 2022

No it wasn't.
The docs are outdated ~10years.

PS Please login to github and see Your messages. You are sending to much mess in them.

chilek added a commit that referenced this issue Jul 5, 2022
…i-advanced-select' (missed change - fixes LMS+ #2136)
@interduo interduo closed this as completed Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants