From c0a09ff173f572688ed5269aefba1bd9898dca75 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 5 Jan 2023 23:56:50 +0000 Subject: [PATCH] --- server/DataList/LicenseDataList.cs | 10 +++++++++- server/util/AySchema.cs | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/server/DataList/LicenseDataList.cs b/server/DataList/LicenseDataList.cs index eca6ccd..6149466 100644 --- a/server/DataList/LicenseDataList.cs +++ b/server/DataList/LicenseDataList.cs @@ -14,7 +14,7 @@ namespace Sockeye.DataList var RoleSet = BizRoles.GetRoleSet(DefaultListAType); AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change; - DefaultColumns = new List() { "licensecreated", "licenseregto", "licensecustomer", "LicenseFetchedOn", "licensetags" }; + DefaultColumns = new List() { "licensecreated", "licenseactive", "licenseregto", "licensecustomer", "LicenseFetchedOn", "licensetags" }; DefaultSortBy = new Dictionary() { { "licensecreated", "-" } }; FieldDefinitions = new List(); /* @@ -62,6 +62,14 @@ namespace Sockeye.DataList IsRowId = true }); + FieldDefinitions.Add(new DataListFieldDefinition + { + TKey = "Active", + FieldKey = "licenseactive", + UiFieldDataType = (int)UiFieldDataType.Bool, + SqlValueColumnName = "alicense.active" + }); + FieldDefinitions.Add(new DataListFieldDefinition { TKey = "LicenseRegTo", diff --git a/server/util/AySchema.cs b/server/util/AySchema.cs index 78674a8..33d8d53 100644 --- a/server/util/AySchema.cs +++ b/server/util/AySchema.cs @@ -22,7 +22,7 @@ namespace Sockeye.Util //!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!! private const int DESIRED_SCHEMA_LEVEL = 17; - internal const long EXPECTED_COLUMN_COUNT = 503; + internal const long EXPECTED_COLUMN_COUNT = 504; internal const long EXPECTED_INDEX_COUNT = 74; internal const long EXPECTED_CHECK_CONSTRAINTS = 240; internal const long EXPECTED_FOREIGN_KEY_CONSTRAINTS = 32;