This commit is contained in:
@@ -22,8 +22,8 @@ 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 = 669;
|
||||
internal const long EXPECTED_INDEX_COUNT = 117;
|
||||
internal const long EXPECTED_COLUMN_COUNT = 676;
|
||||
internal const long EXPECTED_INDEX_COUNT = 119;
|
||||
|
||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!
|
||||
|
||||
@@ -665,8 +665,13 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
|
||||
"cost decimal(19,4) not null, retail decimal(19,4) not null, unitofmeasure text, upc text " +
|
||||
" )");
|
||||
|
||||
//PARTWAREHOUSE
|
||||
await ExecQueryAsync("CREATE TABLE apartwarehouse (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, name text not null unique, active bool not null, " +
|
||||
"notes text, wiki text, customfields text, tags varchar(255) ARRAY)");
|
||||
await ExecQueryAsync("INSERT INTO apartwarehouse(name, active) VALUES ('#1', true);");
|
||||
|
||||
//PARTSERIAL
|
||||
await ExecQueryAsync("CREATE TABLE apartserial (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, serial text not null, "+
|
||||
await ExecQueryAsync("CREATE TABLE apartserial (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, serial text not null, " +
|
||||
"partid bigint not null REFERENCES apart on delete cascade, CONSTRAINT UNQ_PartSerialPart UNIQUE (partid, serial) )");//ensure not duplicate partid/serial combo
|
||||
|
||||
//PARTASSEMBLY
|
||||
|
||||
Reference in New Issue
Block a user