This commit is contained in:
@@ -565,8 +565,7 @@ namespace AyaNova.Util
|
||||
}
|
||||
}
|
||||
}
|
||||
await conn.CloseAsync();
|
||||
|
||||
|
||||
//CHECK CONSTRAINTS
|
||||
using (var command = conn.CreateCommand())
|
||||
{
|
||||
@@ -589,9 +588,7 @@ namespace AyaNova.Util
|
||||
}
|
||||
}
|
||||
}
|
||||
await conn.CloseAsync();
|
||||
|
||||
|
||||
|
||||
//FOREIGN KEY CONSTRAINTS
|
||||
using (var command = conn.CreateCommand())
|
||||
{
|
||||
@@ -614,10 +611,7 @@ namespace AyaNova.Util
|
||||
}
|
||||
}
|
||||
}
|
||||
await conn.CloseAsync();
|
||||
|
||||
|
||||
|
||||
|
||||
//VIEWS
|
||||
using (var command = conn.CreateCommand())
|
||||
{
|
||||
@@ -640,10 +634,7 @@ namespace AyaNova.Util
|
||||
}
|
||||
}
|
||||
}
|
||||
await conn.CloseAsync();
|
||||
|
||||
|
||||
|
||||
|
||||
//ROUTINES
|
||||
using (var command = conn.CreateCommand())
|
||||
{
|
||||
@@ -677,7 +668,7 @@ namespace AyaNova.Util
|
||||
|| ExpectedRoutines != actualRoutines
|
||||
|| ExpectedViews != actualViews)
|
||||
{
|
||||
var err = $"E1030 - Database integrity check failed (C{actualColumns}:I{actualIndexes}:CC{actualCheckConstraints}:FC{actualForeignKeyConstraints}:R{actualRoutines}:V{actualViews})";
|
||||
var err = $"E1030 - Database integrity check failed (C{actualColumns}:I{actualIndexes}:CC{actualCheckConstraints}:FC{actualForeignKeyConstraints}:V{actualViews}:R{actualRoutines})";
|
||||
_log.LogCritical(err);
|
||||
throw new ApplicationException(err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user