From 126f19ffbeafc0d59b09633d40b44307a9f15880 Mon Sep 17 00:00:00 2001 From: yangliu Date: Mon, 14 Jul 2025 10:29:47 +0800 Subject: [PATCH] update Signed-off-by: yangliu --- .../distributeddataservice/service/kvdb/kvdb_service_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/distributeddataservice/service/kvdb/kvdb_service_impl.cpp b/services/distributeddataservice/service/kvdb/kvdb_service_impl.cpp index 06373b517..fdc980797 100644 --- a/services/distributeddataservice/service/kvdb/kvdb_service_impl.cpp +++ b/services/distributeddataservice/service/kvdb/kvdb_service_impl.cpp @@ -788,7 +788,7 @@ Status KVDBServiceImpl::AfterCreate( StoreMetaMapping oldMeta(metaData); auto isCreated = MetaDataManager::GetInstance().LoadMeta(oldMeta.GetKey(), oldMeta, true); Status status = SUCCESS; - if (isCreated && oldMeta != metaData) { + if (isCreated && (oldMeta != metaData || oldMeta.schema != metaData.schema)) { auto dbStatus = Upgrade::GetInstance().UpdateStore(oldMeta, metaData, password); ZLOGI("update status:%{public}d appId:%{public}s storeId:%{public}s inst:%{public}d " "type:%{public}d->%{public}d dir:%{public}s dataType:%{public}d->%{public}d", -- Gitee