integrity table on dev environment didn't have prior integrity store thread hashes, so I tested by migrating raw thread hash data.
```
console.log('running migration 64');
const threadHashes1: ThreadHashes = {
thread1: 123,
thread2: 456,
thread3: 789,
};
const threadHashes2: ThreadHashes = {
thread1: 893,
thread2: 443,
thread3: 913,
};
const threadHashes3: ThreadHashes = {
thread4: 593,
};
const replaceOp1: ReplaceIntegrityThreadHashesOperation = {
type: 'replace_integrity_thread_hashes',
payload: {
threadHashes: threadHashes1,
},
};
const clearOp: RemoveAllIntegrityThreadHashesOperation = {
type: 'remove_all_integrity_thread_hashes',
};
const replaceOp2: ReplaceIntegrityThreadHashesOperation = {
type: 'replace_integrity_thread_hashes',
payload: {
threadHashes: threadHashes2,
},
};
const replaceOp3: ReplaceIntegrityThreadHashesOperation = {
type: 'replace_integrity_thread_hashes',
payload: {
threadHashes: threadHashes3,
},
};
const dbOperations: $ReadOnlyArray<ClientDBIntegrityStoreOperation> =
integrityStoreOpsHandlers.convertOpsToClientDBOps([
clearOp,
replaceOp1,
clearOp,
replaceOp2,
replaceOp3,
]);
try {
await commCoreModule.processIntegrityStoreOperations(dbOperations);
console.log('migration 64 succeeded');
} catch (exception) {
console.log('migration 64 failed');
if (isTaskCancelledError(exception)) {
return state;
}
return handleReduxMigrationFailure(state);
}
return state;
},
```
Depends on D11309