Open connection before checking if table exists
This commit is contained in:
@@ -161,6 +161,7 @@ namespace Umbraco.Core.Persistence.SqlSyntax
|
||||
|
||||
public override bool DoesTableExist(Database db, string tableName)
|
||||
{
|
||||
db.OpenSharedConnection();
|
||||
var result =
|
||||
db.ExecuteScalar<long>("SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES " +
|
||||
"WHERE TABLE_NAME = @TableName AND " +
|
||||
|
||||
Reference in New Issue
Block a user