case 3999
This commit is contained in:
@@ -22,8 +22,8 @@ namespace AyaNova.Util
|
||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!!
|
||||
private const int DESIRED_SCHEMA_LEVEL = 1;
|
||||
|
||||
internal const long EXPECTED_COLUMN_COUNT = 1301;
|
||||
internal const long EXPECTED_INDEX_COUNT = 147;
|
||||
internal const long EXPECTED_COLUMN_COUNT = 1300;
|
||||
internal const long EXPECTED_INDEX_COUNT = 146;
|
||||
internal const long EXPECTED_CHECK_CONSTRAINTS = 517;
|
||||
internal const long EXPECTED_FOREIGN_KEY_CONSTRAINTS = 193;
|
||||
internal const long EXPECTED_VIEWS = 11;
|
||||
@@ -31,7 +31,7 @@ namespace AyaNova.Util
|
||||
|
||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!!
|
||||
|
||||
///////////////////////////////////////////////////////////////// C1301:I147:CC517:FC193:V11:R2
|
||||
///////////////////////////////////////////////////////////////// C1300:I146:CC517:FC193:V11:R2
|
||||
|
||||
|
||||
|
||||
@@ -399,7 +399,7 @@ BEGIN
|
||||
when 29 then return 'LT:WorkOrderItemLoan';
|
||||
when 30 then return 'LT:WorkOrderItemPart';
|
||||
when 31 then aytable = 'aunit'; aynamecolumn = 'serial';
|
||||
when 32 then aytable = 'aunitmodel'; aynamecolumn = 'number';
|
||||
when 32 then aytable = 'aunitmodel'; aynamecolumn = 'name';
|
||||
when 33 then aytable = 'avendor';
|
||||
when 34 then aytable = 'aworkorder'; aynamecolumn = 'serial';
|
||||
when 35 then return 'LT:WorkOrderItem';
|
||||
@@ -732,10 +732,10 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
|
||||
|
||||
|
||||
//UNITMODEL
|
||||
await ExecQueryAsync("CREATE TABLE aunitmodel (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, name TEXT NULL, active BOOL NOT NULL, "
|
||||
await ExecQueryAsync("CREATE TABLE aunitmodel (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, name TEXT NOT NULL, active BOOL NOT NULL, "
|
||||
+ "notes TEXT, wiki TEXT, customfields TEXT, tags VARCHAR(255) ARRAY, "
|
||||
+ "number TEXT NOT NULL, vendorid BIGINT NULL REFERENCES avendor(id), upc TEXT NULL, lifetimewarranty BOOL NOT NULL, introduceddate TIMESTAMP NULL, "
|
||||
+ "discontinued BOOL NOT NULL, discontinueddate TIMESTAMP NULL, warrantylength INTEGER NULL, warrantyterms TEXT NULL, CONSTRAINT UNQ_UnitModelNumberVendorId UNIQUE (number, vendorid) "
|
||||
+ "vendorid BIGINT NULL REFERENCES avendor(id), upc TEXT NULL, lifetimewarranty BOOL NOT NULL, introduceddate TIMESTAMP NULL, "
|
||||
+ "discontinued BOOL NOT NULL, discontinueddate TIMESTAMP NULL, warrantylength INTEGER NULL, warrantyterms TEXT NULL "
|
||||
+ ")");
|
||||
|
||||
|
||||
|
||||
@@ -2143,13 +2143,10 @@ namespace AyaNova.Util
|
||||
|
||||
do
|
||||
{
|
||||
o.Name = $"{Fake.Vehicle.Model()} {Fake.Commerce.Categories(1)[0]}";
|
||||
o.Name = $"{Fake.Vehicle.Model()} {Fake.Commerce.Categories(1)[0]} - {Fake.Finance.Account(6)}";
|
||||
} while (!HashUnitModelNames.Add(o.Name));
|
||||
|
||||
do
|
||||
{
|
||||
o.Number = Fake.Finance.Account(6);
|
||||
} while (!HashUnitModelNames.Add(o.Number));
|
||||
|
||||
|
||||
o.Active = true;
|
||||
o.Notes = Fake.Lorem.Sentence();
|
||||
|
||||
Reference in New Issue
Block a user