This commit is contained in:
2021-01-25 18:06:11 +00:00
parent 05f6fa0e7f
commit 22232450d7
5 changed files with 69 additions and 21 deletions

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 = 15;
internal const long EXPECTED_COLUMN_COUNT = 699;
internal const long EXPECTED_COLUMN_COUNT = 700;
internal const long EXPECTED_INDEX_COUNT = 122;
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!
@@ -230,8 +230,10 @@ namespace AyaNova.Util
LogUpdateMessage(log);
//create global biz settings table
await ExecQueryAsync("CREATE TABLE aglobalbizsettings (id INTEGER NOT NULL PRIMARY KEY, " +
"searchcasesensitiveonly BOOL default false)");
await ExecQueryAsync("CREATE TABLE aglobalbizsettings (id INTEGER NOT NULL PRIMARY KEY, "
+ "searchcasesensitiveonly BOOL default false, "
+ "useinventory BOOL 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,7 +18,9 @@ namespace AyaNova.Util
{
internal static bool SearchCaseSensitiveOnly { get; set; }
//NO always active, email delivery is a separate setting but app delivery is always there internal static bool NotificationSystemActive { get; set; }
internal static bool UseInventory {get;set;}
/// <summary>
/// Populate and / or create the settings
@@ -40,7 +42,7 @@ namespace AyaNova.Util
//We have the object, now copy the static values here
SearchCaseSensitiveOnly = global.SearchCaseSensitiveOnly;
// NotificationSystemActive = global.NotificationSystemActive;
UseInventory = global.UseInventory;
}