case 4640
This commit is contained in:
@@ -10,7 +10,11 @@ See the [upgrade instructions](ops-upgrade.md) section of this manual for detail
|
||||
|
||||
### AyaNova 8.2.4
|
||||
|
||||
In progress...
|
||||
Released 2025-11-24
|
||||
|
||||
**Fixed**
|
||||
|
||||
- Server: changes for compatibility with PostgreSQL 18.1. This update is only required if Postgres is 18.1 or newer.
|
||||
|
||||
### AyaNova 8.2.3
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ site_name: AyaNova manual
|
||||
site_dir: "../../../server/AyaNova/wwwroot/docs"
|
||||
site_url: https://ayanova.com/docs/
|
||||
strict: true
|
||||
copyright: Copyright © 2022-2025 Ground Zero Tech-Works Inc. REV-2025-02-18
|
||||
copyright: Copyright © 2022-2025 Ground Zero Tech-Works Inc. REV-2025-11-24
|
||||
extra:
|
||||
generator: false
|
||||
# Extensions
|
||||
|
||||
@@ -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