case 4640
This commit is contained in:
@@ -623,7 +623,7 @@ namespace AyaNova
|
||||
_newLog.LogDebug("DB integrity check");
|
||||
DbUtil.CheckFingerPrintAsync(AySchema.EXPECTED_COLUMN_COUNT,
|
||||
AySchema.EXPECTED_INDEX_COUNT,
|
||||
AySchema.EXPECTED_CHECK_CONSTRAINTS,
|
||||
//case 4640 AySchema.EXPECTED_CHECK_CONSTRAINTS,
|
||||
AySchema.EXPECTED_FOREIGN_KEY_CONSTRAINTS,
|
||||
AySchema.EXPECTED_VIEWS,
|
||||
AySchema.EXPECTED_ROUTINES,
|
||||
|
||||
@@ -24,7 +24,9 @@ namespace AyaNova.Util
|
||||
|
||||
internal const long EXPECTED_COLUMN_COUNT = 1389;
|
||||
internal const long EXPECTED_INDEX_COUNT = 160;
|
||||
internal const long EXPECTED_CHECK_CONSTRAINTS = 561;
|
||||
//case 4640 PG 18 release adds extra check constraints beyond what we create causing this to fail and
|
||||
//it's not critical anyway so just removing it as simple solution
|
||||
//internal const long EXPECTED_CHECK_CONSTRAINTS = 561;
|
||||
internal const long EXPECTED_FOREIGN_KEY_CONSTRAINTS = 204;
|
||||
internal const long EXPECTED_VIEWS = 11;
|
||||
internal const long EXPECTED_ROUTINES = 2;
|
||||
|
||||
@@ -798,7 +798,7 @@ namespace AyaNova.Util
|
||||
internal static async Task CheckFingerPrintAsync(
|
||||
long ExpectedColumns,
|
||||
long ExpectedIndexes,
|
||||
long ExpectedCheckConstraints,
|
||||
//case 4640 long ExpectedCheckConstraints,
|
||||
long ExpectedForeignKeyConstraints,
|
||||
long ExpectedViews,
|
||||
long ExpectedRoutines,
|
||||
@@ -961,12 +961,13 @@ namespace AyaNova.Util
|
||||
|
||||
if (ExpectedColumns != actualColumns
|
||||
|| ExpectedIndexes != actualIndexes
|
||||
|| ExpectedCheckConstraints != actualCheckConstraints
|
||||
//case 4640 || ExpectedCheckConstraints != actualCheckConstraints
|
||||
|| ExpectedForeignKeyConstraints != actualForeignKeyConstraints
|
||||
|| ExpectedRoutines != actualRoutines
|
||||
|| ExpectedViews != actualViews)
|
||||
{
|
||||
var err = $"E1030 - Database integrity check failed (C{actualColumns}:I{actualIndexes}:CC{actualCheckConstraints}:FC{actualForeignKeyConstraints}:V{actualViews}:R{actualRoutines})";
|
||||
//var err = $"E1030 - Database integrity check failed (C{actualColumns}:I{actualIndexes}:CC{actualCheckConstraints}:FC{actualForeignKeyConstraints}:V{actualViews}:R{actualRoutines})";
|
||||
var err = $"E1030 - Database integrity check failed (C{actualColumns}:I{actualIndexes}:FC{actualForeignKeyConstraints}:V{actualViews}:R{actualRoutines})";
|
||||
_log.LogCritical(err);
|
||||
throw new ApplicationException(err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user