21 lines
555 B
C#
21 lines
555 B
C#
using Umbraco.Cms.Infrastructure.Persistence.Dtos;
|
|
using Umbraco.Extensions;
|
|
|
|
namespace Umbraco.Cms.Infrastructure.Migrations.Upgrade.V_8_0_0
|
|
{
|
|
class AddContentNuTable : MigrationBase
|
|
{
|
|
public AddContentNuTable(IMigrationContext context)
|
|
: base(context)
|
|
{ }
|
|
|
|
protected override void Migrate()
|
|
{
|
|
var tables = SqlSyntax.GetTablesInSchema(Context.Database);
|
|
if (tables.InvariantContains("cmsContentNu")) return;
|
|
|
|
Create.Table<ContentNuDto>(true).Do();
|
|
}
|
|
}
|
|
}
|