/// <summary>
        /// Generates a script from the data store to the specific version
        /// </summary>
        /// <param name="version">Name of the migration to generate a script to</param>
        /// <returns>true if migration was successful, otherwise false</returns>
        public string GenerateScriptForVersion(string version)
        {
            var result = _migratorBackend.GenerateScriptForVersion(version);

            if (!result.IsSuccess)
            {
                throw new Exception($"Error when generating a script: {result.Exception.Message}.", result.Exception);
            }

            return(result.Script);
        }