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

Backported schema update from 1.37.25 to 1.36.34 won't work on some versions of mysql databases #4155

Closed
itsTurnip opened this issue Sep 27, 2024 · 3 comments

Comments

@itsTurnip
Copy link

Describe Your Environment

  • Version of ZoneMinder [release version, development version, or commit]
    1.36.34
  • How you installed ZoneMinder [e.g. PPA, RPMFusion, from-source, etc]
    zoneminder-containers image
  • Full name and version of OS
    Debian 12 (as for image base)

Describe the bug
Upgrading from 1.36.33 to 1.36.34 will fail with some old versions of databases. The following error will appear for mariadb 5.5.68 which is packed on CentOS 7.

To Reproduce
Run upgrade from 1.36.33 to 1.36.34 with mysql version < 5.6.5.

Expected behavior
Successfull migration from 1.36.33 to 1.36.34

Debug Logs

Upgrading DB to 1.36.34 from 1.36.33
ERROR 1067 (42000) at line 10: Invalid default value for 'UpdatedOn'
Copy link

welcome bot commented Sep 27, 2024

Thanks for opening your first issue here! Just a reminder, this forum is for Bug Reports only. Be sure to follow the issue template!

@itsTurnip
Copy link
Author

itsTurnip commented Sep 27, 2024

I know it's kind of an old database which is not likely to be supported anymore, but I think 1.36.* version should not drop this support.

For anyone who is looking for a workaround: you can just add column UpdateOn to MonitorStatus table and then create a trigger to fill it out.

connortechnology pushed a commit that referenced this issue Sep 27, 2024
…old mysql can't handle it. Explicilty set it in zmc.

Fixes #4155
@connortechnology
Copy link
Member

The fix was included in 1.36.35. I think we can close this.

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

2 participants