Tower: upload cetmix_tower_yaml 16.0.3.1.0 (via marketplace)

This commit is contained in:
2026-04-27 08:32:55 +00:00
parent a2742e95ec
commit 44e10c9212

View File

@@ -0,0 +1,19 @@
def migrate(cr, version):
"""
Normalize existing license values to lowercase.
Runs only on upgrade (version != False).
"""
if not version:
return
# Skip rows already lowercase for efficiency
cr.execute(
"""
UPDATE cx_tower_yaml_manifest_tmpl
SET license = LOWER(TRIM(license))
WHERE license IS NOT NULL
AND (
license <> LOWER(license)
OR license <> TRIM(license)
)
"""
)