Attempt to resolve conflict in DatabaseManager
This commit is contained in:
parent
20b5a10882
commit
2402cab3f3
@ -234,7 +234,8 @@ namespace Oqtane.Infrastructure
|
||||
|
||||
using (var masterDbContext = new MasterDBContext(new DbContextOptions<MasterDBContext>(), dbConfig))
|
||||
{
|
||||
if (IsInstalled() && (install.DatabaseType == "SqlServer" || install.DatabaseType == "LocalDB"))
|
||||
var installation = IsInstalled();
|
||||
if (installation.Success && (install.DatabaseType == "SqlServer" || install.DatabaseType == "LocalDB"))
|
||||
{
|
||||
UpgradeSqlServer(sql, install.ConnectionString, true);
|
||||
}
|
||||
@ -489,8 +490,6 @@ namespace Oqtane.Infrastructure
|
||||
|
||||
var tenant = tenants.GetTenants().FirstOrDefault(item => item.Name == install.TenantName);
|
||||
|
||||
if (tenant != null)
|
||||
{
|
||||
site = new Site
|
||||
{
|
||||
TenantId = tenant.TenantId,
|
||||
@ -561,7 +560,6 @@ namespace Oqtane.Infrastructure
|
||||
|
||||
tenant.Version = Constants.Version;
|
||||
tenants.UpdateTenant(tenant);
|
||||
}
|
||||
|
||||
if (site != null) log.Log(site.SiteId, LogLevel.Trace, this, LogFunction.Create, "Site Created {Site}", site);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user