Skip to content

Allow tag names in languages ​​other than English & Bump version to 1.39.6#4779

Open
IgorA100 wants to merge 13 commits into
ZoneMinder:masterfrom
IgorA100:patch-121679
Open

Allow tag names in languages ​​other than English & Bump version to 1.39.6#4779
IgorA100 wants to merge 13 commits into
ZoneMinder:masterfrom
IgorA100:patch-121679

Conversation

@IgorA100
Copy link
Copy Markdown
Contributor

@IgorA100 IgorA100 commented May 2, 2026

No description provided.

@IgorA100 IgorA100 changed the title Allow tag names in languages ​​other than English Allow tag names in languages ​​other than English & Bump version to 1.39.6 May 2, 2026
@IgorA100
Copy link
Copy Markdown
Contributor Author

IgorA100 commented May 2, 2026

I hope this PR will work.

@IgorA100 IgorA100 marked this pull request as ready for review May 2, 2026 10:06
@connortechnology connortechnology requested a review from Copilot May 2, 2026 13:23
@connortechnology
Copy link
Copy Markdown
Member

Just wondering if we sholdn't do something more significant. Why isn't it using the right collation to begin with? I've seen this because my db is really old, and I had to convert it to utf8mb4. Have had to do it to many installs over the years. Just wondering if we need to change your entire db and not just the table. What was the collation before?

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Bumps ZoneMinder to 1.39.6 and introduces a DB schema change intended to allow non‑English tag names by updating the Tags.Name collation.

Changes:

  • Bump version from 1.39.5 to 1.39.6 (core version file + RPM spec).
  • Add DB update script zm_update-1.39.6.sql to modify Tags.Name collation.
  • Update the DB creation schema for Tags.Name to use a utf8mb4 collation.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
version.txt Version bump to 1.39.6.
distros/redhat/zoneminder.spec RPM spec version bump to 1.39.6.
db/zm_update-1.39.6.sql Migration to change Tags.Name collation for multilingual tag names.
db/zm_create.sql.in Updates initial Tags table definition to match the new collation intent.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread db/zm_create.sql.in Outdated
Comment thread db/zm_update-1.39.6.sql Outdated
@IgorA100
Copy link
Copy Markdown
Contributor Author

IgorA100 commented May 2, 2026

I had to convert it to utf8mb4

Oh, so I'm not alone. :)
Perhaps the right solution would be to not specify collation at all, but trust the client database settings. And do this for the entire database. But that requires additional testing. I quickly created this PR because I got carried away with tags and ran into another problem on the new server. Then I remembered that the problem was with collation and decided to create this PR.
Previously, it was collation=latin1_bin

IgorA100 and others added 2 commits May 2, 2026 17:09
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
…the "*_bin" collation instead of "*_unicode_ci" (zm_update-1.39.6.sql).
@IgorA100 IgorA100 marked this pull request as draft May 2, 2026 14:22
@IgorA100 IgorA100 marked this pull request as ready for review May 2, 2026 14:24
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread db/zm_create.sql.in Outdated
Comment thread db/zm_update-1.39.6.sql Outdated
@IgorA100 IgorA100 marked this pull request as draft May 6, 2026 10:11
IgorA100 and others added 3 commits May 6, 2026 17:01
The changes to `utf8mb4_unicode_ci` were made deliberately, as I don't think case-sensitivity and accent sensitivity are necessary.
Yes, updated installations and new ones will behave differently, but if the user's account is clean, i.e., a new installation, there won't be any conflicts.
Well, I don't think using `utf8mb4_unicode_ci` is mandatory for new installations. Let's use `utf8mb4_bin`.

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
@IgorA100 IgorA100 marked this pull request as ready for review May 6, 2026 14:05
@IgorA100
Copy link
Copy Markdown
Contributor Author

@connortechnology
I consider this PR complete.

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

Successfully merging this pull request may close these issues.

3 participants