Merge pull request #9854 from kjac/netcore/feature/cleanup-migration-expression
Removed unused method from migration expression interface
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
namespace Umbraco.Core.Migrations.Expressions.Rename.Expressions
|
||||
namespace Umbraco.Core.Migrations.Expressions.Rename.Expressions
|
||||
{
|
||||
public class RenameColumnExpression : MigrationExpressionBase
|
||||
{
|
||||
@@ -10,9 +10,6 @@
|
||||
public virtual string OldName { get; set; }
|
||||
public virtual string NewName { get; set; }
|
||||
|
||||
public override string Process(IMigrationContext context)
|
||||
=> GetSql();
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override string GetSql()
|
||||
{
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
namespace Umbraco.Core.Migrations
|
||||
namespace Umbraco.Core.Migrations
|
||||
{
|
||||
/// <summary>
|
||||
/// Marker interface for migration expressions
|
||||
/// </summary>
|
||||
public interface IMigrationExpression
|
||||
{
|
||||
string Process(IMigrationContext context); // TODO: remove that one?
|
||||
void Execute();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
@@ -34,11 +34,6 @@ namespace Umbraco.Core.Migrations
|
||||
|
||||
public List<IMigrationExpression> Expressions => _expressions ?? (_expressions = new List<IMigrationExpression>());
|
||||
|
||||
public virtual string Process(IMigrationContext context)
|
||||
{
|
||||
return ToString();
|
||||
}
|
||||
|
||||
protected virtual string GetSql()
|
||||
{
|
||||
return ToString();
|
||||
|
||||
Reference in New Issue
Block a user