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

Fix default value for modManagerLog.occurred column #16527

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

opengeek
Copy link
Member

What does it do?

Adds a default value for the datetime column in the modx_manager_log table that is compatible with strict modes, which may be enabled in some environments.

Re-up of #15736 with migration

Why is it needed?

Beginning with MySQL > 5.7.8 added strict modes ERROR_FOR_DIVISION_BY_ZERO, NO_ZERO_DATE, NO_ZERO_IN_DATE. With these strict modes enabled, a datetime default value cannot be NULL and must be > '0000-00-00'.

How to test

Install/update on MySQL 5.7.8

Related issue(s)/PR(s)

Re-up of #15736
Backport of #16526

@opengeek opengeek added this to the v2.8.7 milestone Feb 16, 2024
@opengeek opengeek added the bug The issue in the code or project, which should be addressed. label Feb 16, 2024
@rthrash rthrash added the pr/ready-for-merging Pull request reviewed and tested and ready for merging. label Feb 27, 2024
@opengeek opengeek merged commit 7f12966 into modxcms:2.x Mar 6, 2024
5 checks passed
@opengeek opengeek deleted the pr-16526-2.x branch March 6, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue in the code or project, which should be addressed. pr/ready-for-merging Pull request reviewed and tested and ready for merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants