1e41f4b71Sopenharmony_ci# Distributed Data Subsystem Changelog
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci## cl.distributeddatamgr.1 Change of the API Name from Action to clearAction in the cloudData Module
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci**Change Impact**
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ciFrom OpenHarmony4.0.9.3, use **clearAction()** to specify the action taken to clear the cloud data locally.
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci**Key API/Component Changes**
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ciBefore change:
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci ```ts
14e41f4b71Sopenharmony_ci enum Action {
15e41f4b71Sopenharmony_ci    CLEAR_CLOUD_INFO,
16e41f4b71Sopenharmony_ci    CLEAR_CLOUD_DATA_AND_INFO
17e41f4b71Sopenharmony_ci  }
18e41f4b71Sopenharmony_ci ```
19e41f4b71Sopenharmony_ci
20e41f4b71Sopenharmony_ciAfter change:
21e41f4b71Sopenharmony_ci
22e41f4b71Sopenharmony_ci ```ts
23e41f4b71Sopenharmony_ci enum ClearAction {
24e41f4b71Sopenharmony_ci    CLEAR_CLOUD_INFO,
25e41f4b71Sopenharmony_ci    CLEAR_CLOUD_DATA_AND_INFO
26e41f4b71Sopenharmony_ci  }
27e41f4b71Sopenharmony_ci ```
28e41f4b71Sopenharmony_ci
29e41f4b71Sopenharmony_ci**Adaptation Guide**
30e41f4b71Sopenharmony_ci
31e41f4b71Sopenharmony_ciFrom OpenHarmony4.0.9.3, use **clearAction()** to specify the action taken to clear the cloud data locally.
32e41f4b71Sopenharmony_ci
33e41f4b71Sopenharmony_ci## cl.distributeddatamgr.2 Change of the API Name from clean to clear in the cloudData Module
34e41f4b71Sopenharmony_ci
35e41f4b71Sopenharmony_ci**Change Impact**
36e41f4b71Sopenharmony_ci
37e41f4b71Sopenharmony_ciFrom OpenHarmony4.0.9.3, use **clear()** to clear the cloud data locally.
38e41f4b71Sopenharmony_ci
39e41f4b71Sopenharmony_ci**Key API/Component Changes**
40e41f4b71Sopenharmony_ci
41e41f4b71Sopenharmony_ciBefore change:
42e41f4b71Sopenharmony_ci
43e41f4b71Sopenharmony_ci ```ts
44e41f4b71Sopenharmony_ci    static clean(
45e41f4b71Sopenharmony_ci      accountId: string,
46e41f4b71Sopenharmony_ci      appActions: { [bundleName: string]: Action },
47e41f4b71Sopenharmony_ci      callback: AsyncCallback<void>
48e41f4b71Sopenharmony_ci    ): void;
49e41f4b71Sopenharmony_ci    static clean(accountId: string, appActions: { [bundleName: string]: Action }): Promise<void>;
50e41f4b71Sopenharmony_ci ```
51e41f4b71Sopenharmony_ci
52e41f4b71Sopenharmony_ciAfter change:
53e41f4b71Sopenharmony_ci
54e41f4b71Sopenharmony_ci ```ts
55e41f4b71Sopenharmony_ci     static clear(
56e41f4b71Sopenharmony_ci      accountId: string,
57e41f4b71Sopenharmony_ci      appActions: { [bundleName: string]: ClearAction },
58e41f4b71Sopenharmony_ci      callback: AsyncCallback<void>
59e41f4b71Sopenharmony_ci    ): void;
60e41f4b71Sopenharmony_ci    static clear(accountId: string, appActions: { [bundleName: string]: ClearAction }): Promise<void>;
61e41f4b71Sopenharmony_ci ```
62e41f4b71Sopenharmony_ci
63e41f4b71Sopenharmony_ci**Adaptation Guide**
64e41f4b71Sopenharmony_ci
65e41f4b71Sopenharmony_ciFrom OpenHarmony4.0.9.3, use **clear()** to clear the cloud data locally.
66e41f4b71Sopenharmony_ci
67e41f4b71Sopenharmony_ci## cl.distributeddatamgr.3 Change of "success" to "successful" in Statistic of the relationalStore Module
68e41f4b71Sopenharmony_ci
69e41f4b71Sopenharmony_ci**Change Impact**
70e41f4b71Sopenharmony_ci
71e41f4b71Sopenharmony_ciFrom OpenHarmony4.0.9.3, use **Statistic.successful** to indicate the number of rows that are successfully synchronized between the device and cloud.
72e41f4b71Sopenharmony_ci
73e41f4b71Sopenharmony_ci**Key API/Component Changes**
74e41f4b71Sopenharmony_ci
75e41f4b71Sopenharmony_ciThe enumerated value **success** of **Statistic** is changed to **successful**.
76e41f4b71Sopenharmony_ci
77e41f4b71Sopenharmony_ciBefore change:
78e41f4b71Sopenharmony_ci
79e41f4b71Sopenharmony_ci ```ts
80e41f4b71Sopenharmony_ci  interface Statistic {
81e41f4b71Sopenharmony_ci    total: number;
82e41f4b71Sopenharmony_ci    success: number;
83e41f4b71Sopenharmony_ci    failed: number;
84e41f4b71Sopenharmony_ci    remained: number;
85e41f4b71Sopenharmony_ci  }
86e41f4b71Sopenharmony_ci ```
87e41f4b71Sopenharmony_ci
88e41f4b71Sopenharmony_ciAfter change:
89e41f4b71Sopenharmony_ci
90e41f4b71Sopenharmony_ci ```ts
91e41f4b71Sopenharmony_ci  interface Statistic {
92e41f4b71Sopenharmony_ci    total: number;
93e41f4b71Sopenharmony_ci    successful: number;
94e41f4b71Sopenharmony_ci    failed: number;
95e41f4b71Sopenharmony_ci    remained: number;
96e41f4b71Sopenharmony_ci  }
97e41f4b71Sopenharmony_ci ```
98e41f4b71Sopenharmony_ci
99e41f4b71Sopenharmony_ci**Adaptation Guide**
100e41f4b71Sopenharmony_ci
101e41f4b71Sopenharmony_ciFrom OpenHarmony4.0.9.3, use **Statistic.successful** to indicate the number of rows that are successfully synchronized between the device and cloud.
102e41f4b71Sopenharmony_ci
103e41f4b71Sopenharmony_ci## cl.distributeddatamgr.4 Change of the Parameter type in setDistributedTables() from the number Type to DistributedType in the relationalStore Module
104e41f4b71Sopenharmony_ci
105e41f4b71Sopenharmony_ci**Change Impact**
106e41f4b71Sopenharmony_ci
107e41f4b71Sopenharmony_ciFrom OpenHarmony4.0.9.3, the type of the input parameter **type** of **setDistributedTables()** is changed from **number** to **DistributedType**.
108e41f4b71Sopenharmony_ci
109e41f4b71Sopenharmony_ci**Key API/Component Changes**
110e41f4b71Sopenharmony_ci
111e41f4b71Sopenharmony_ciBefore change:
112e41f4b71Sopenharmony_ci
113e41f4b71Sopenharmony_ci ```ts
114e41f4b71Sopenharmony_cisetDistributedTables(tables: Array<string>, type: number, config: DistributedConfig, callback: AsyncCallback<void>): void;
115e41f4b71Sopenharmony_cisetDistributedTables(tables: Array<string>, type?: number, config?: DistributedConfig): Promise<void>;
116e41f4b71Sopenharmony_ci ```
117e41f4b71Sopenharmony_ci
118e41f4b71Sopenharmony_ciAfter change:
119e41f4b71Sopenharmony_ci
120e41f4b71Sopenharmony_ci ```ts
121e41f4b71Sopenharmony_cisetDistributedTables(tables: Array<string>, type: DistributedType, config: DistributedConfig, callback: AsyncCallback<void>): void;
122e41f4b71Sopenharmony_cisetDistributedTables(tables: Array<string>, type?: DistributedType, config?: DistributedConfig): Promise<void>;
123e41f4b71Sopenharmony_ci ```
124e41f4b71Sopenharmony_ci**Adaptation Guide**
125e41f4b71Sopenharmony_ci
126e41f4b71Sopenharmony_ciFrom OpenHarmony4.0.9.3, the type of the input parameter **type** of **setDistributedTables()** is changed from **number** to **DistributedType**.
127