24 lines
601 B
C#
24 lines
601 B
C#
using Umbraco.Cms.Infrastructure.Persistence.Dtos;
|
|
using Umbraco.Extensions;
|
|
|
|
namespace Umbraco.Cms.Infrastructure.Migrations.Upgrade.V_10_2_0;
|
|
|
|
public class AddUserGroup2LanguageTable : MigrationBase
|
|
{
|
|
public AddUserGroup2LanguageTable(IMigrationContext context) : base(context)
|
|
{
|
|
}
|
|
|
|
protected override void Migrate()
|
|
{
|
|
IEnumerable<string> tables = SqlSyntax.GetTablesInSchema(Context.Database);
|
|
|
|
if (tables.InvariantContains(UserGroup2LanguageDto.TableName))
|
|
{
|
|
return;
|
|
}
|
|
|
|
Create.Table<UserGroup2LanguageDto>().Do();
|
|
}
|
|
}
|