Added ability for Runtime and RenderMode to be set per Site - enabling the framework to support multiple hosting models concurrently in the same installation. Fixed WebAssembly Prerendering issue (this also resolved the issue where the component taghelper was not passing parameters correctly to the app when running on WebAssembly). Fix #1702 - remove web,config from upgrade package.
This commit is contained in:
33
Oqtane.Server/Migrations/Tenant/03000001_AddSiteRuntime.cs
Normal file
33
Oqtane.Server/Migrations/Tenant/03000001_AddSiteRuntime.cs
Normal file
@ -0,0 +1,33 @@
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Oqtane.Databases.Interfaces;
|
||||
using Oqtane.Migrations.EntityBuilders;
|
||||
using Oqtane.Repository;
|
||||
|
||||
namespace Oqtane.Migrations.Tenant
|
||||
{
|
||||
[DbContext(typeof(TenantDBContext))]
|
||||
[Migration("Tenant.03.00.00.01")]
|
||||
public class AddSiteRuntime : MultiDatabaseMigration
|
||||
{
|
||||
public AddSiteRuntime(IDatabase database) : base(database)
|
||||
{
|
||||
}
|
||||
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
var siteEntityBuilder = new SiteEntityBuilder(migrationBuilder, ActiveDatabase);
|
||||
siteEntityBuilder.AddStringColumn("Runtime", 50, true, true);
|
||||
siteEntityBuilder.UpdateColumn("Runtime", "'Server'");
|
||||
siteEntityBuilder.AddStringColumn("RenderMode", 50, true, true);
|
||||
siteEntityBuilder.UpdateColumn("RenderMode", "'ServerPrerendered'");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
var siteEntityBuilder = new SiteEntityBuilder(migrationBuilder, ActiveDatabase);
|
||||
siteEntityBuilder.DropColumn("Runtime");
|
||||
siteEntityBuilder.DropColumn("RenderMode");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user