Merge branch '7.0.0' of https://github.com/umbraco/Umbraco-CMS into 7.0.0
This commit is contained in:
@@ -23,8 +23,9 @@ namespace Umbraco.Core.Persistence.Migrations.Upgrades.TargetVersionSeven
|
||||
//change the type (keep the data)
|
||||
Alter.Table("cmsMacroProperty").AlterColumn("macroPropertyType").AsString(255);
|
||||
//rename the column
|
||||
Alter.Table("cmsMacroProperty").AddColumn("editorAlias").AsString(255).NotNullable().WithDefaultValue("");
|
||||
Rename.Column("macroPropertyType").OnTable("cmsMacroProperty").To("editorAlias");
|
||||
|
||||
Delete.Column("macroPropertyType").FromTable("cmsMacroProperty");
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
|
||||
@@ -12,7 +12,10 @@ namespace Umbraco.Core.Persistence.Migrations.Upgrades.TargetVersionSeven
|
||||
public override void Up()
|
||||
{
|
||||
Alter.Table("cmsDataType").AlterColumn("controlId").AsString(255);
|
||||
Alter.Table("cmsDataType").AddColumn("propertyEditorAlias").AsString(255).NotNullable().WithDefaultValue("");
|
||||
Rename.Column("controlId").OnTable("cmsDataType").To("propertyEditorAlias");
|
||||
|
||||
Delete.Column("controlId").FromTable("cmsDataType");
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
|
||||
Reference in New Issue
Block a user