using Grand.Data;
using Grand.Infrastructure.Migrations;

namespace Grand.Module.Migration.Migrations._2._2;

public class MigrationUpdateResourceString : IMigration
{
    public int Priority => 0;
    public DbVersion Version => new(2, 2);
    public Guid Identity => new("97287FAC-ECF6-462E-9ED0-586C26151A4F");
    public string Name => "Update resource string for english language 2.2";

    /// <summary>
    ///     Upgrade process
    /// </summary>
    /// <param name="database"></param>
    /// <param name="serviceProvider"></param>
    /// <returns></returns>
    public bool UpgradeProcess(IServiceProvider serviceProvider)
    {
        return serviceProvider.ImportLanguageResourcesFromXml("App_Data/Resources/Upgrade/en_220.xml");
    }
}