Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (21 sloc) 661 Bytes
using System.Data;
using Orchard.ContentManagement;
using Orchard.ContentManagement.MetaData;
using Orchard.Core.Contents.Extensions;
using Orchard.Data.Migration;
using Q42.AdminSpecificCulture.Models;
namespace Q42.AdminSpecificCulture
{
public class Migrations : DataMigrationImpl
{
public int Create()
{
SchemaBuilder.CreateTable(typeof(AdminCultureSettingsPartRecord).Name, table => table
.ContentPartRecord()
.Column("AdminCulture", DbType.String)
);
ContentDefinitionManager.AlterPartDefinition(typeof(AdminCultureSettingsPartRecord).Name, part => part.Attachable(false));
return 1;
}
}
}