This commit is contained in:
@@ -14,12 +14,15 @@ namespace AyaNova.Models
|
|||||||
//Global settings
|
//Global settings
|
||||||
//Picklist and other searches override the normal case insensitive value
|
//Picklist and other searches override the normal case insensitive value
|
||||||
//this is precautionarily added for non latinate languages where it could be an issue
|
//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()
|
public GlobalBizSettings()
|
||||||
{
|
{
|
||||||
Id=1;//always 1
|
Id = 1;//always 1
|
||||||
SearchCaseSensitiveOnly = false;
|
SearchCaseSensitiveOnly = false;
|
||||||
|
NotificationSystemActive = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace AyaNova.Util
|
|||||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!
|
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!
|
||||||
private const int DESIRED_SCHEMA_LEVEL = 12;
|
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;
|
internal const long EXPECTED_INDEX_COUNT = 138;
|
||||||
|
|
||||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!
|
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!
|
||||||
@@ -230,7 +230,7 @@ namespace AyaNova.Util
|
|||||||
|
|
||||||
//create global biz settings table
|
//create global biz settings table
|
||||||
await ExecQueryAsync("CREATE TABLE aglobalbizsettings (id integer NOT NULL PRIMARY KEY, " +
|
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
|
//create global ops BACKUP settings table
|
||||||
await ExecQueryAsync("CREATE TABLE aglobalopsbackupsettings (id integer NOT NULL PRIMARY KEY, active bool not null, " +
|
await ExecQueryAsync("CREATE TABLE aglobalopsbackupsettings (id integer NOT NULL PRIMARY KEY, active bool not null, " +
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ namespace AyaNova.Util
|
|||||||
{
|
{
|
||||||
|
|
||||||
internal static bool SearchCaseSensitiveOnly { get; set; }
|
internal static bool SearchCaseSensitiveOnly { get; set; }
|
||||||
|
internal static bool NotificationSystemActive { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Populate and / or create the settings
|
/// Populate and / or create the settings
|
||||||
@@ -39,6 +40,7 @@ namespace AyaNova.Util
|
|||||||
|
|
||||||
//We have the object, now copy the static values here
|
//We have the object, now copy the static values here
|
||||||
SearchCaseSensitiveOnly = global.SearchCaseSensitiveOnly;
|
SearchCaseSensitiveOnly = global.SearchCaseSensitiveOnly;
|
||||||
|
NotificationSystemActive = global.NotificationSystemActive;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user