mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 10:01:00 +01:00
MariaDB 12.3 enforces that STR_TO_DATE (which reads lc_time_names) cannot appear in a GENERATED ALWAYS AS clause, so migration 0098 failed with error 1901 and RomM could not start. Earlier releases up to 12.2 accepted it, which is why the problem only surfaced on 12.3. The gamelist value is already pinned to a fixed-width "YYYYMMDDThhmmss" by the regex guard, so it is reshaped into a canonical datetime literal with SUBSTRING/CONCAT and fed to the existing TIMESTAMPDIFF. Stored values and their time-zone independence are unchanged. Fixes #3873 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>