This commit is contained in:
2018-09-04 17:37:29 +00:00
parent a15e02db54
commit 1bfb8fcd8a
16 changed files with 53 additions and 30 deletions

View File

@@ -124,7 +124,7 @@ namespace AyaNova.Util
exec("CREATE TABLE aevent (id BIGSERIAL PRIMARY KEY, created timestamp not null, ownerid bigint not null," +
"ayid bigint not null, aytype integer not null, ayevent integer not null, textra varchar(255))");
//TODO: do I *really* need these or do they bloat unnecessarily? Need to test with big dataset
//LOOKAT: do I *really* need these or do they bloat unnecessarily? Need to test with big dataset
//index for quick searching
// exec("CREATE INDEX ayid_idx ON aevent (ayid);");
// exec("CREATE INDEX aytype_idx ON aevent (aytype);");
@@ -226,7 +226,7 @@ namespace AyaNova.Util
//////////////////////////////////////////////////
//LICENSE table new columns
//TODO: DO I need this anymore???
//LOOKAT: DO I need this anymore???
if (currentSchema < 8)
{
LogUpdateMessage(log);

View File

@@ -306,7 +306,8 @@ namespace AyaNova.Util
///////////////////////////////////////////
// Check if DB is empty
// Check if DB is empty
// CALLED BY LICENSE CONTROLLER AND LICENSE.CS FOR TRIAL Request check
//
internal static bool DBIsEmpty(AyContext ctx, ILogger _log)
{

View File

@@ -334,6 +334,7 @@ namespace AyaNova.Core
/// <returns>Result string</returns>
internal static string RequestTrial(string email, string regto, ILogger log)
{
//BEFORE_RELEASE: DO THE FOLLOWING BEFORE RELEASE:
//TODO: TESTING REMOVE BEFORE RELEASE
//for test purposes if this route is hit and this code executed then the dbid is temporarily changed to the special trial request
//dbid so I can test remotely without hassle
@@ -513,7 +514,8 @@ namespace AyaNova.Core
//Update current license
CurrentInDbKeyRecord.Key = RawTextNewKey;
//TODO: reason, resultcode etc
//LOOKAT: reason, resultcode etc
//There is similar block related to this in ayschema for db schema version 8
ctx.SaveChanges();
}
catch (Exception ex)

View File

@@ -252,7 +252,7 @@ namespace AyaNova.Util
u.Roles = roles;
u.LocaleId = ServerBootConfig.AYANOVA_DEFAULT_LANGUAGE_ID;
u.UserType = userType;
//TODO: if usertype is subcontractor or client or headoffice it needs to set a corresponding user's parent org record id to go with it
//TODO: After have USER and HEADOFFICE and VENDOR, if usertype is subcontractor or client or headoffice it needs to set a corresponding user's parent org record id to go with it
ct.User.Add(u);
}