Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (21 sloc) 0.661 kB
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;
}
}
}
Jump to Line
Something went wrong with that request. Please try again.