case 4341
This commit is contained in:
@@ -20,7 +20,7 @@ namespace AyaNova.Util
|
||||
/////////// CHANGE THIS ON NEW SCHEMA UPDATE ////////////////////
|
||||
|
||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!!
|
||||
private const int DESIRED_SCHEMA_LEVEL = 13;
|
||||
private const int DESIRED_SCHEMA_LEVEL = 14;
|
||||
|
||||
internal const long EXPECTED_COLUMN_COUNT = 1380;
|
||||
internal const long EXPECTED_INDEX_COUNT = 160;
|
||||
@@ -1722,6 +1722,38 @@ CREATE OR REPLACE VIEW public.viewpartinventorylist
|
||||
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
//
|
||||
// case 4341
|
||||
//
|
||||
if (currentSchema < 14)
|
||||
{
|
||||
LogUpdateMessage(log);
|
||||
await ExecQueryAsync("ALTER TABLE aglobalbizsettings ADD COLUMN postcodestreet TEXT;");
|
||||
await ExecQueryAsync("ALTER TABLE acustomer ADD COLUMN postcodestreet TEXT;");
|
||||
await ExecQueryAsync("ALTER TABLE aheadoffice ADD COLUMN postcodestreet TEXT;");
|
||||
await ExecQueryAsync("ALTER TABLE avendor ADD COLUMN postcodestreet TEXT;");
|
||||
await ExecQueryAsync("ALTER TABLE aunit ADD COLUMN postcodestreet TEXT;");
|
||||
await ExecQueryAsync("ALTER TABLE aworkorder ADD COLUMN postcodestreet TEXT;");
|
||||
await ExecQueryAsync("ALTER TABLE aquote ADD COLUMN postcodestreet TEXT;");
|
||||
await ExecQueryAsync("ALTER TABLE apm ADD COLUMN postcodestreet 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'");
|
||||
|
||||
//spanish translations
|
||||
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'AddressPostal', 'Código postal' FROM atranslation t where t.baselanguage = 'es'");
|
||||
|
||||
//french translations
|
||||
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'AddressPostal', 'Code postal' FROM atranslation t where t.baselanguage = 'fr'");
|
||||
|
||||
//german translations
|
||||
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'AddressPostal', 'Postleitzahl' FROM atranslation t where t.baselanguage = 'de'");
|
||||
|
||||
await SetSchemaLevelAsync(++currentSchema);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//#########################################
|
||||
|
||||
@@ -1775,7 +1775,7 @@ namespace AyaNova.Util
|
||||
gbiz.PostCity = gbiz.City;
|
||||
gbiz.PostRegion = gbiz.Region;
|
||||
gbiz.PostCountry = gbiz.Country;
|
||||
gbiz.PostCode = Fake.Address.ZipCode();
|
||||
gbiz.AddressPostal = gbiz.PostCode = Fake.Address.ZipCode();
|
||||
gbiz.Phone1 = Fake.Phone.PhoneNumber();
|
||||
gbiz.Phone2 = Fake.Phone.PhoneNumber();
|
||||
gbiz.WebAddress = Fake.Internet.Protocol() + "://example." + Fake.Internet.DomainSuffix();
|
||||
@@ -1965,7 +1965,7 @@ namespace AyaNova.Util
|
||||
o.PostCity = o.City;
|
||||
o.PostRegion = o.Region;
|
||||
o.PostCountry = o.Country;
|
||||
o.PostCode = Fake.Address.ZipCode();
|
||||
o.AddressPostal = o.PostCode = Fake.Address.ZipCode();
|
||||
|
||||
o.Phone1 = Fake.Phone.PhoneNumber();
|
||||
o.Phone2 = Fake.Phone.PhoneNumber();
|
||||
@@ -2049,7 +2049,7 @@ namespace AyaNova.Util
|
||||
o.PostCity = o.City;
|
||||
o.PostRegion = o.Region;
|
||||
o.PostCountry = o.Country;
|
||||
o.PostCode = Fake.Address.ZipCode();
|
||||
o.AddressPostal = o.PostCode = Fake.Address.ZipCode();
|
||||
|
||||
o.Phone1 = Fake.Phone.PhoneNumber();
|
||||
o.Phone2 = Fake.Phone.PhoneNumber();
|
||||
@@ -2995,7 +2995,7 @@ namespace AyaNova.Util
|
||||
o.City = cust.City;
|
||||
o.Region = cust.Region;
|
||||
o.Country = cust.Country;
|
||||
|
||||
o.AddressPostal = cust.PostCode;
|
||||
|
||||
if (cust.BillHeadOffice && cust.HeadOfficeId != null)
|
||||
{
|
||||
@@ -3004,7 +3004,7 @@ namespace AyaNova.Util
|
||||
o.PostCity = head.PostCity;
|
||||
o.PostRegion = head.PostRegion;
|
||||
o.PostCountry = head.PostCountry;
|
||||
o.PostCode = head.PostCode;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3013,7 +3013,6 @@ namespace AyaNova.Util
|
||||
o.PostCity = cust.PostCity;
|
||||
o.PostRegion = cust.PostRegion;
|
||||
o.PostCountry = cust.PostCountry;
|
||||
o.PostCode = cust.PostCode;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3475,7 +3474,7 @@ namespace AyaNova.Util
|
||||
o.City = cust.City;
|
||||
o.Region = cust.Region;
|
||||
o.Country = cust.Country;
|
||||
|
||||
o.AddressPostal = cust.PostCode;
|
||||
|
||||
if (cust.BillHeadOffice && cust.HeadOfficeId != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user