adopt more of the migrations conventions
This commit is contained in:
10
Oqtane.Server/Infrastructure/Interfaces/ISiteMigration.cs
Normal file
10
Oqtane.Server/Infrastructure/Interfaces/ISiteMigration.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using Oqtane.Models;
|
||||
|
||||
namespace Oqtane.Infrastructure
|
||||
{
|
||||
public interface ISiteMigration
|
||||
{
|
||||
void Up(Site site, Alias alias);
|
||||
void Down(Site site, Alias alias); // for future use (if necessary)
|
||||
}
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
using Oqtane.Models;
|
||||
|
||||
namespace Oqtane.Infrastructure
|
||||
{
|
||||
public interface ISiteUpgrade
|
||||
{
|
||||
bool Upgrade(Site site, Alias alias);
|
||||
}
|
||||
}
|
@ -3,12 +3,12 @@ using System;
|
||||
namespace Oqtane.Infrastructure
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class)]
|
||||
public class SiteUpgradeAttribute : Attribute
|
||||
public class SiteMigrationAttribute : Attribute
|
||||
{
|
||||
private string aliasname;
|
||||
private string version;
|
||||
|
||||
public SiteUpgradeAttribute(string AliasName, string Version)
|
||||
public SiteMigrationAttribute(string AliasName, string Version)
|
||||
{
|
||||
aliasname = AliasName;
|
||||
version = Version;
|
Reference in New Issue
Block a user