This commit is contained in:
2020-07-09 23:02:12 +00:00
parent 8d46690826
commit edb3b28750
3 changed files with 12 additions and 7 deletions

View File

@@ -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;
}
}
}

View File

@@ -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, " +

View File

@@ -18,6 +18,7 @@ namespace AyaNova.Util
{
internal static bool SearchCaseSensitiveOnly { get; set; }
internal static bool NotificationSystemActive { get; set; }
/// <summary>
/// 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;
}