This commit is contained in:
2019-01-17 16:44:15 +00:00
parent 2730043507
commit 2f94d37e5d
4 changed files with 206 additions and 160 deletions

View File

@@ -255,25 +255,7 @@ namespace AyaNova.Util
setSchemaLevel(++currentSchema);
}
// //////////////////////////////////////////////////
// //LICENSE table new columns
// //LOOKAT: DO I need this anymore???
// //answer: no because it relates to ops stuff in other tables and logging, not to the license itself (except maybe dbid?)
// if (currentSchema < 7)
// {
// LogUpdateMessage(log);
// //Add license related stuff
// exec("ALTER TABLE alicense ADD COLUMN dbid uuid");
// exec("ALTER TABLE alicense ADD COLUMN LastFetchStatus integer");
// exec("ALTER TABLE alicense ADD COLUMN LastFetchMessage text");
// setSchemaLevel(++currentSchema);
// }
//////////////////////////////////////////////////
//DATAFILTER table
if (currentSchema < 7)

View File

@@ -430,10 +430,8 @@ namespace AyaNova.Core
if (ldb == null)
{
ldb = new Models.License();
ldb.DbId = Guid.NewGuid();
//ldb.LastFetchStatus = 0;
ldb.DbId = Guid.NewGuid();
ldb.Key = "none";
//ldb.LastFetchMessage = "none";
ctx.License.Add(ldb);
ctx.SaveChanges();
}