diff --git a/server/AyaNova/util/AySchema.cs b/server/AyaNova/util/AySchema.cs index bf382e3b..08de42aa 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 = 16; + private const int DESIRED_SCHEMA_LEVEL = 17; internal const long EXPECTED_COLUMN_COUNT = 1389; internal const long EXPECTED_INDEX_COUNT = 160; @@ -1799,6 +1799,32 @@ CREATE OR REPLACE VIEW public.viewpartinventorylist } + ////////////////////////////////////////////////// + // + // case 4491 + // + if (currentSchema < 17) + { + LogUpdateMessage(log); + + + + //english translations + await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'ServerUpdateAvailable', 'New version available' FROM atranslation t where t.baselanguage = 'en'"); + + //spanish translations + await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'ServerUpdateAvailable', 'Nueva versión disponible' FROM atranslation t where t.baselanguage = 'es'"); + + //french translations + await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'ServerUpdateAvailable', 'Nouvelle version disponible' FROM atranslation t where t.baselanguage = 'fr'"); + + //german translations + await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'ServerUpdateAvailable', 'Neue Version verfügbar' FROM atranslation t where t.baselanguage = 'de'"); + + await SetSchemaLevelAsync(++currentSchema); + + } + //#########################################