Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions conf/db/upgrade/V5.5.32__schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,10 @@ PREPARE stmt FROM @sql;
EXECUTE stmt;
DEALLOCATE PREPARE stmt;

-- ZSTAC-87753: primary-storage cache policies are resource-level and shared by
-- all hosts; shared rows carry hostUuid NULL, so the column must be nullable.
ALTER TABLE `zstack`.`AiHostModelCachePolicyVO` MODIFY COLUMN `hostUuid` VARCHAR(32) NULL;

CALL CREATE_INDEX('VmModelMountVO', 'idxVmModelMountVOCacheUuid', 'cacheUuid');
CALL ADD_CONSTRAINT('VmModelMountVO', 'fkVmModelMountVOAiHostModelCacheVO', 'cacheUuid', 'AiHostModelCacheVO', 'uuid', 'SET NULL');

Expand Down