const migrate = async (context, projectSchema) => {
    const { generateDataKeyFn } = context;
    const dataKey = projectSchema.dataKey ? projectSchema.dataKey : await generateDataKeyFn();
    /**
     * Generate a dataKey if none is present.
     */
    return {
        ...projectSchema,
        schemaVersion: '3.3.0',
        dataKey
    };
};
export default migrate;
