diff --git a/server/AyaNova/models/GlobalBizSettings.cs b/server/AyaNova/models/GlobalBizSettings.cs index c4574465..c90ba6f8 100644 --- a/server/AyaNova/models/GlobalBizSettings.cs +++ b/server/AyaNova/models/GlobalBizSettings.cs @@ -5,7 +5,7 @@ namespace AyaNova.Models public class GlobalBizSettings { - + public long Id { get; set; }//this is always 1 as there is only ever one single global biz object @@ -14,12 +14,15 @@ namespace AyaNova.Models //Global settings //Picklist and other searches override the normal case insensitive value //this is precautionarily added for non latinate languages where it could be an issue - public bool SearchCaseSensitiveOnly {get;set;} + public bool SearchCaseSensitiveOnly { get; set; } + + public bool NotificationSystemActive { get; set; } public GlobalBizSettings() - { - Id=1;//always 1 - SearchCaseSensitiveOnly = false; + { + Id = 1;//always 1 + SearchCaseSensitiveOnly = false; + NotificationSystemActive = true; } } } diff --git a/server/AyaNova/util/AySchema.cs b/server/AyaNova/util/AySchema.cs index e6f626e4..3a4005be 100644 --- a/server/AyaNova/util/AySchema.cs +++ b/server/AyaNova/util/AySchema.cs @@ -22,7 +22,7 @@ namespace AyaNova.Util //!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!! private const int DESIRED_SCHEMA_LEVEL = 12; - internal const long EXPECTED_COLUMN_COUNT = 369; + internal const long EXPECTED_COLUMN_COUNT = 370; internal const long EXPECTED_INDEX_COUNT = 138; //!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!! @@ -230,7 +230,7 @@ namespace AyaNova.Util //create global biz settings table await ExecQueryAsync("CREATE TABLE aglobalbizsettings (id integer NOT NULL PRIMARY KEY, " + - "searchcasesensitiveonly bool default false)"); + "searchcasesensitiveonly bool default false, notificationsystemactive bool not null default true)"); //create global ops BACKUP settings table await ExecQueryAsync("CREATE TABLE aglobalopsbackupsettings (id integer NOT NULL PRIMARY KEY, active bool not null, " + diff --git a/server/AyaNova/util/ServerGlobalBizSettings.cs b/server/AyaNova/util/ServerGlobalBizSettings.cs index 2f2efeb7..fd99a270 100644 --- a/server/AyaNova/util/ServerGlobalBizSettings.cs +++ b/server/AyaNova/util/ServerGlobalBizSettings.cs @@ -18,6 +18,7 @@ namespace AyaNova.Util { internal static bool SearchCaseSensitiveOnly { get; set; } + internal static bool NotificationSystemActive { get; set; } /// /// Populate and / or create the settings @@ -39,6 +40,7 @@ namespace AyaNova.Util //We have the object, now copy the static values here SearchCaseSensitiveOnly = global.SearchCaseSensitiveOnly; + NotificationSystemActive = global.NotificationSystemActive; }