Added ability to execute version specific code during framework upgrade (removed ApplicationVersion table and replaced with Version field on Tenant table), updated version number to 0.9.0 and renamed install scripts to match - this will be a baseline release which will be upgradeable
This commit is contained in:
@ -21,7 +21,5 @@ namespace Oqtane.Repository
|
||||
public virtual DbSet<Tenant> Tenant { get; set; }
|
||||
public virtual DbSet<ModuleDefinition> ModuleDefinition { get; set; }
|
||||
public virtual DbSet<Job> Job { get; set; }
|
||||
|
||||
public virtual DbSet<ApplicationVersion> ApplicationVersion { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -10,5 +10,6 @@ namespace Oqtane.Repository
|
||||
Site UpdateSite(Site site);
|
||||
Site GetSite(int siteId);
|
||||
void DeleteSite(int siteId);
|
||||
void CreatePages(Site site, List<PageTemplate> pageTemplates);
|
||||
}
|
||||
}
|
||||
|
@ -731,7 +731,7 @@ namespace Oqtane.Repository
|
||||
CreatePages(site, CreateAdminPages());
|
||||
}
|
||||
|
||||
private void CreatePages(Site site, List<PageTemplate> pageTemplates)
|
||||
public void CreatePages(Site site, List<PageTemplate> pageTemplates)
|
||||
{
|
||||
List<ModuleDefinition> moduledefinitions = _moduleDefinitionRepository.GetModuleDefinitions(site.SiteId).ToList();
|
||||
foreach (PageTemplate pagetemplate in pageTemplates)
|
||||
|
Reference in New Issue
Block a user