29 lines
848 B
C#
29 lines
848 B
C#
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Oqtane.Databases.Interfaces;
|
|
using Oqtane.Migrations.EntityBuilders;
|
|
using Oqtane.Repository;
|
|
|
|
namespace Oqtane.Migrations.Master
|
|
{
|
|
[DbContext(typeof(MasterDBContext))]
|
|
[Migration("Master.04.00.00.02")]
|
|
public class AddThemeName : MultiDatabaseMigration
|
|
{
|
|
public AddThemeName(IDatabase database) : base(database)
|
|
{
|
|
}
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
var themeEntityBuilder = new ThemeEntityBuilder(migrationBuilder, ActiveDatabase);
|
|
themeEntityBuilder.AddStringColumn("Name", 200, true);
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
// not implemented
|
|
}
|
|
}
|
|
}
|