diff --git a/server/biz/SockType.cs b/server/biz/SockType.cs index 960a1aa..93ad0bf 100644 --- a/server/biz/SockType.cs +++ b/server/biz/SockType.cs @@ -41,6 +41,8 @@ namespace Sockeye.Biz FileAttachment = 17, DataListSavedFilter = 18, FormCustom = 19, + [CoreBizObject, ReportableBizObject, ImportableBizObject] + Vendor = 33, GlobalOps = 47,//really only used for rights, not an object type of any kind BizMetrics = 48,//deprecate? Not used for anything as of nov 2020 Backup = 49, diff --git a/server/util/AySchema.cs b/server/util/AySchema.cs index 6e5c880..4760a56 100644 --- a/server/util/AySchema.cs +++ b/server/util/AySchema.cs @@ -22,7 +22,7 @@ namespace Sockeye.Util //!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!! private const int DESIRED_SCHEMA_LEVEL = 16; - internal const long EXPECTED_COLUMN_COUNT = 500; + internal const long EXPECTED_COLUMN_COUNT = 501; internal const long EXPECTED_INDEX_COUNT = 71; internal const long EXPECTED_CHECK_CONSTRAINTS = 234; internal const long EXPECTED_FOREIGN_KEY_CONSTRAINTS = 34; @@ -31,7 +31,7 @@ namespace Sockeye.Util //!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!! - ///////////////////////////////////////// (C500:I71:CC234:FC34:V0:R2) + ///////////////////////////////////////// (C501:I71:CC234:FC34:V0:R2) /* @@ -690,6 +690,7 @@ BEGIN when 17 then aytable = 'afileattachment'; aynamecolumn ='displayfilename'; when 18 then aytable = 'adatalistsavedfilter'; when 19 then aytable = 'aformcustom'; aynamecolumn = 'formkey'; + when 33 then aytable = 'avendor'; when 47 then aytkey= 'GlobalOps'; when 48 then aytkey= 'BizMetrics'; when 49 then aytkey= 'Backup'; @@ -844,6 +845,7 @@ $BODY$ LANGUAGE PLPGSQL STABLE"); await ExecQueryAsync("ALTER TABLE aglobalbizsettings ADD COLUMN addresspostal TEXT;"); await ExecQueryAsync("ALTER TABLE acustomer ADD COLUMN addresspostal TEXT;"); await ExecQueryAsync("ALTER TABLE aheadoffice ADD COLUMN addresspostal TEXT;"); + await ExecQueryAsync("ALTER TABLE avendor ADD COLUMN addresspostal TEXT;"); //english translations await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'AddressPostal', 'Postal / ZIP code' FROM atranslation t where t.baselanguage = 'en'");