This commit is contained in:
@@ -22,16 +22,16 @@ namespace AyaNova.Util
|
||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!
|
||||
private const int DESIRED_SCHEMA_LEVEL = 1;
|
||||
|
||||
internal const long EXPECTED_COLUMN_COUNT = 956;
|
||||
internal const long EXPECTED_COLUMN_COUNT = 957;
|
||||
internal const long EXPECTED_INDEX_COUNT = 137;
|
||||
internal const long EXPECTED_CHECK_CONSTRAINTS = 415;
|
||||
internal const long EXPECTED_FOREIGN_KEY_CONSTRAINTS = 117;
|
||||
internal const long EXPECTED_FOREIGN_KEY_CONSTRAINTS = 118;
|
||||
internal const long EXPECTED_VIEWS = 6;
|
||||
internal const long EXPECTED_ROUTINES = 2;
|
||||
|
||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!
|
||||
|
||||
///////////////////////////////////////////////////////////////// C957:I137:CC415:FC117:V6:R2 C957:I137:CC415:FC117:V6:R2
|
||||
///////////////////////////////////////////////////////////////// C957:I137:CC415:FC118:V6:R2
|
||||
|
||||
/*
|
||||
|
||||
@@ -772,7 +772,7 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
|
||||
//WORKORDER
|
||||
await ExecQueryAsync("CREATE TABLE aworkorder (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, serial BIGINT GENERATED BY DEFAULT AS IDENTITY NOT NULL, "
|
||||
+ "notes TEXT, wiki TEXT, customfields TEXT, tags VARCHAR(255) ARRAY, customerid BIGINT NOT NULL REFERENCES acustomer (id), "
|
||||
+ "projectid BIGINT REFERENCES aproject, contractid BIGINT NULL, internalreferencenumber text, customerreferencenumber text, customercontactname text, "
|
||||
+ "projectid BIGINT REFERENCES aproject, laststatusid BIGINT REFERENCES aworkorderstatus(id), contractid BIGINT NULL, internalreferencenumber text, customerreferencenumber text, customercontactname text, "
|
||||
+ "servicedate TIMESTAMP, completebydate TIMESTAMP, invoicenumber TEXT, customersignature TEXT, customersignaturename TEXT, customersignaturecaptured TIMESTAMP, "
|
||||
+ "techsignature TEXT, techsignaturename TEXT, techsignaturecaptured TIMESTAMP, durationtocompleted INTERVAL NOT NULL, onsite BOOL NOT NULL, "
|
||||
+ "postaddress TEXT, postcity TEXT, postregion TEXT, postcountry TEXT, postcode TEXT, address TEXT, city TEXT, region TEXT, country TEXT, latitude DECIMAL(9,6), longitude DECIMAL(9,6) "
|
||||
|
||||
@@ -2888,6 +2888,7 @@ namespace AyaNova.Util
|
||||
Created = ((DateTime)o.ServiceDate).AddHours(2)
|
||||
};
|
||||
o.States.Add(WoState);
|
||||
o.LastStatusId=WoState.WorkOrderStatusId;//simulate if user added state to wo so it gets set
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user