Merge branch 'master' into master

This commit is contained in:
Shaun Walker 2020-04-21 15:17:22 -04:00 committed by GitHub
commit 79eae9c5fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -419,6 +419,7 @@ namespace Oqtane.Infrastructure
{
using (var db = new InstallationContext(connectionString))
{
//check if DbUp was initialized
return TableExists(db, "SchemaVersions");
}
@ -431,6 +432,7 @@ namespace Oqtane.Infrastructure
public static bool TableExists(DbContext context, string schema, string tableName)
{
if (!context.Database.CanConnect()) return false;
var connection = context.Database.GetDbConnection();
if (connection.State.Equals(ConnectionState.Closed))

View File

@ -2,9 +2,9 @@
"ConnectionStrings": {
"DefaultConnection": ""
},
"Runtime" : "Server",
"Installation": {
"DefaultAlias": "",
"HostUser": "",
"HostPassword": "",
"HostEmail": "",
"SiteTemplate": "",