include theme resources on server page load, add IUpgradeable interface to provide site-based versioning support
This commit is contained in:
		
							
								
								
									
										29
									
								
								Oqtane.Server/Migrations/Tenant/03010004_AddSiteVersion.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								Oqtane.Server/Migrations/Tenant/03010004_AddSiteVersion.cs
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,29 @@ | ||||
| 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.01.00.04")] | ||||
|     public class AddSiteVersion : MultiDatabaseMigration | ||||
|     { | ||||
|         public AddSiteVersion(IDatabase database) : base(database) | ||||
|         { | ||||
|         } | ||||
|  | ||||
|         protected override void Up(MigrationBuilder migrationBuilder) | ||||
|         { | ||||
|             var siteEntityBuilder = new SiteEntityBuilder(migrationBuilder, ActiveDatabase); | ||||
|             siteEntityBuilder.AddStringColumn("Version", 50, true); | ||||
|         } | ||||
|  | ||||
|         protected override void Down(MigrationBuilder migrationBuilder) | ||||
|         { | ||||
|             var siteEntityBuilder = new SiteEntityBuilder(migrationBuilder, ActiveDatabase); | ||||
|             siteEntityBuilder.DropColumn("Version"); | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Shaun Walker
					Shaun Walker