Database creation bug
HostUser change is not allowed in silent install
This commit is contained in:
parent
5fb8cd5cec
commit
209f6db0fb
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user