From 1ef6f0c4c6b8510e53c7fd5978015c22ff9e70e1 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 6 Apr 2023 00:37:41 +0000 Subject: [PATCH] case 4503 --- server/AyaNova/util/AySchema.cs | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/server/AyaNova/util/AySchema.cs b/server/AyaNova/util/AySchema.cs index b08d7c73..bf382e3b 100644 --- a/server/AyaNova/util/AySchema.cs +++ b/server/AyaNova/util/AySchema.cs @@ -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 = 15; + private const int DESIRED_SCHEMA_LEVEL = 16; internal const long EXPECTED_COLUMN_COUNT = 1389; internal const long EXPECTED_INDEX_COUNT = 160; @@ -1772,6 +1772,35 @@ CREATE OR REPLACE VIEW public.viewpartinventorylist + ////////////////////////////////////////////////// + // + // case 4503 + // + if (currentSchema < 16) + { + LogUpdateMessage(log); + + //seriously, how does one get this far into a big business application and not have a Save as yet? + //inconceivable! + + //english translations + await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'SaveAs', 'Save as' FROM atranslation t where t.baselanguage = 'en'"); + + //spanish translations + await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'SaveAs', 'Guardar como' FROM atranslation t where t.baselanguage = 'es'"); + + //french translations + await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'SaveAs', 'Enregistrer sous' FROM atranslation t where t.baselanguage = 'fr'"); + + //german translations + await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'SaveAs', 'Speichern unter' FROM atranslation t where t.baselanguage = 'de'"); + + await SetSchemaLevelAsync(++currentSchema); + + } + + + //######################################### //!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!