This commit is contained in:
2021-01-18 23:35:17 +00:00
parent c01e7c1e64
commit 247c600e15
5 changed files with 5 additions and 16 deletions

View File

@@ -22,7 +22,7 @@ namespace AyaNova.Util
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!
private const int DESIRED_SCHEMA_LEVEL = 15;
internal const long EXPECTED_COLUMN_COUNT = 667;
internal const long EXPECTED_COLUMN_COUNT = 666;
internal const long EXPECTED_INDEX_COUNT = 115;
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!
@@ -662,7 +662,7 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
"notes text, wiki text, customfields text, tags varchar(255) ARRAY, " +
"partnumber text not null unique, manufacturerid bigint REFERENCES avendor, manufacturernumber text, " +
"wholesalerid bigint REFERENCES avendor, wholesalernumber text, alternativewholesalerid bigint REFERENCES avendor, alternativewholesalernumber text, " +
"cost decimal(19,4) not null, retail decimal(19,4) not null, unitofmeasure text, upc text, trackserialnumber bool not null " +
"cost decimal(19,4) not null, retail decimal(19,4) not null, unitofmeasure text, upc text " +
" )");
//PARTASSEMBLY

View File

@@ -1522,7 +1522,7 @@ namespace AyaNova.Util
o.Retail = o.Cost * 1.2m;
o.UnitOfMeasure = "each";
o.TrackSerialNumber = false;
//This seems wrong to do in a loop but is 4 times faster this way ?!?
using (AyContext ct = ServiceProviderProvider.DBContext)