From 44e10c9212efd8db557f926d3d6a80139b2a1d04 Mon Sep 17 00:00:00 2001 From: git_admin Date: Mon, 27 Apr 2026 08:32:55 +0000 Subject: [PATCH] Tower: upload cetmix_tower_yaml 16.0.3.1.0 (via marketplace) --- .../migrations/16.0.1.4.1/post-migration.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 addons/cetmix_tower_yaml/migrations/16.0.1.4.1/post-migration.py diff --git a/addons/cetmix_tower_yaml/migrations/16.0.1.4.1/post-migration.py b/addons/cetmix_tower_yaml/migrations/16.0.1.4.1/post-migration.py new file mode 100644 index 0000000..8238759 --- /dev/null +++ b/addons/cetmix_tower_yaml/migrations/16.0.1.4.1/post-migration.py @@ -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) + ) + """ + )