From f25df0a6e9a85e47d44893c54ce69638c5dcb0d9 Mon Sep 17 00:00:00 2001 From: "ye.zou" Date: Thu, 2 Jul 2026 12:14:53 +0800 Subject: [PATCH] [gpu]: add gpu normalized model schema Backport the normalizedModelName schema required by premium GPU spec deduplication to 5.4.10. This is the zstack companion change for the premium ZSTAC-86476 backport. Constraint: ZSTAC-86476 is the 5.4.10 clone of ZSTAC-75319. Confidence: high Scope-risk: narrow Tested: ./runMavenProfile premium in pr-build-bin Docker with zstack and premium mounted Not-tested: local stability case execution Resolves: ZSTAC-86476 Change-Id: Ic77e24e974a99842c40f29e4bd72851e3833795b --- conf/db/upgrade/V5.4.10__schema.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/db/upgrade/V5.4.10__schema.sql b/conf/db/upgrade/V5.4.10__schema.sql index e69de29bb2d..ab73deda0f6 100644 --- a/conf/db/upgrade/V5.4.10__schema.sql +++ b/conf/db/upgrade/V5.4.10__schema.sql @@ -0,0 +1,3 @@ +-- ZSTAC-86476: Add normalizedModelName column for GPU spec dedup +CALL ADD_COLUMN('GpuDeviceSpecVO', 'normalizedModelName', 'VARCHAR(255)', 1, NULL); +CALL CREATE_INDEX('GpuDeviceSpecVO', 'idx_gpu_spec_normalized_model', 'normalizedModelName');