This commit is contained in:
@@ -20,9 +20,9 @@ namespace AyaNova.Util
|
||||
/////////// CHANGE THIS ON NEW SCHEMA UPDATE ////////////////////
|
||||
|
||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!!
|
||||
private const int DESIRED_SCHEMA_LEVEL = 14;
|
||||
private const int DESIRED_SCHEMA_LEVEL = 15;
|
||||
|
||||
internal const long EXPECTED_COLUMN_COUNT = 1380;
|
||||
internal const long EXPECTED_COLUMN_COUNT = 1389;
|
||||
internal const long EXPECTED_INDEX_COUNT = 160;
|
||||
internal const long EXPECTED_CHECK_CONSTRAINTS = 561;
|
||||
internal const long EXPECTED_FOREIGN_KEY_CONSTRAINTS = 204;
|
||||
@@ -31,7 +31,7 @@ namespace AyaNova.Util
|
||||
|
||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!!
|
||||
|
||||
/////////////////////////////////////////C1380:I160:CC561:FC204:V11:R2
|
||||
///////////////////////////////////////// C1389:I160:CC561:FC204:V11:R2
|
||||
|
||||
/*
|
||||
|
||||
@@ -1754,6 +1754,22 @@ CREATE OR REPLACE VIEW public.viewpartinventorylist
|
||||
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
//
|
||||
// case 4341 missing bit
|
||||
//
|
||||
if (currentSchema < 15)
|
||||
{
|
||||
LogUpdateMessage(log);
|
||||
//Note: for future reference PostgreSQL can't handle replacing a view with different columns so it must be dropped explicitly first then created again
|
||||
//replace view error cannot change name of view column
|
||||
await ExecQueryAsync("DROP VIEW viewworkorder");
|
||||
await ExecQueryAsync("CREATE VIEW viewworkorder AS SELECT aworkorder.*, now() - aworkorder.createddate AS expwoage FROM aworkorder");
|
||||
await SetSchemaLevelAsync(++currentSchema);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//#########################################
|
||||
|
||||
Reference in New Issue
Block a user