This commit is contained in:
@@ -16,9 +16,6 @@ SERVER
|
|||||||
|
|
||||||
- DO ALL THE THINGS!!!! - all the way down to DOCS MANUAL below which isn't urgent and go back to client stuff
|
- DO ALL THE THINGS!!!! - all the way down to DOCS MANUAL below which isn't urgent and go back to client stuff
|
||||||
|
|
||||||
- PickListFetcher: WTF? It has a reference to widgetbiz in it, isn't this a generic class??
|
|
||||||
|
|
||||||
- AySchema: License table extra fields, remove any not required (also in model and code)
|
|
||||||
|
|
||||||
- Resource localization edit all Custom field locale keys for all langauges and change to be 1 to 16 (remove 0 and add 6 more)
|
- Resource localization edit all Custom field locale keys for all langauges and change to be 1 to 16 (remove 0 and add 6 more)
|
||||||
- So, for example ClientCustom0 becomes ClientCustom1 and make sure the display values are identical as right now there are "My Custom0" and "Custom Field 8" in the same bunch
|
- So, for example ClientCustom0 becomes ClientCustom1 and make sure the display values are identical as right now there are "My Custom0" and "Custom Field 8" in the same bunch
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ namespace AyaNova.Models
|
|||||||
public long Id { get; set; }
|
public long Id { get; set; }
|
||||||
public string Key { get; set; }
|
public string Key { get; set; }
|
||||||
public Guid DbId { get; set; }
|
public Guid DbId { get; set; }
|
||||||
public int LastFetchStatus { get; set; }
|
//public int LastFetchStatus { get; set; }
|
||||||
public string LastFetchMessage { get; set; }
|
// public string LastFetchMessage { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -20,9 +20,9 @@ namespace AyaNova.Util
|
|||||||
/////////// CHANGE THIS ON NEW SCHEMA UPDATE ////////////////////
|
/////////// CHANGE THIS ON NEW SCHEMA UPDATE ////////////////////
|
||||||
|
|
||||||
//!!!!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 = 10;
|
private const int DESIRED_SCHEMA_LEVEL = 9;
|
||||||
|
|
||||||
internal const long EXPECTED_COLUMN_COUNT = 104;
|
internal const long EXPECTED_COLUMN_COUNT = 102;
|
||||||
internal const long EXPECTED_INDEX_COUNT = 24;
|
internal const long EXPECTED_INDEX_COUNT = 24;
|
||||||
|
|
||||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!
|
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!
|
||||||
@@ -191,7 +191,7 @@ namespace AyaNova.Util
|
|||||||
LogUpdateMessage(log);
|
LogUpdateMessage(log);
|
||||||
|
|
||||||
//Add user table
|
//Add user table
|
||||||
exec("CREATE TABLE alicense (id BIGSERIAL PRIMARY KEY, key text not null)");
|
exec("CREATE TABLE alicense (id BIGSERIAL PRIMARY KEY, dbid uuid, key text not null)");
|
||||||
|
|
||||||
setSchemaLevel(++currentSchema);
|
setSchemaLevel(++currentSchema);
|
||||||
}
|
}
|
||||||
@@ -256,27 +256,27 @@ namespace AyaNova.Util
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////
|
// //////////////////////////////////////////////////
|
||||||
//LICENSE table new columns
|
// //LICENSE table new columns
|
||||||
//LOOKAT: DO I need this anymore???
|
// //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?)
|
// //answer: no because it relates to ops stuff in other tables and logging, not to the license itself (except maybe dbid?)
|
||||||
if (currentSchema < 7)
|
// if (currentSchema < 7)
|
||||||
{
|
// {
|
||||||
LogUpdateMessage(log);
|
// LogUpdateMessage(log);
|
||||||
|
|
||||||
//Add license related stuff
|
// //Add license related stuff
|
||||||
exec("ALTER TABLE alicense ADD COLUMN dbid uuid");
|
// exec("ALTER TABLE alicense ADD COLUMN dbid uuid");
|
||||||
exec("ALTER TABLE alicense ADD COLUMN LastFetchStatus integer");
|
// exec("ALTER TABLE alicense ADD COLUMN LastFetchStatus integer");
|
||||||
exec("ALTER TABLE alicense ADD COLUMN LastFetchMessage text");
|
// exec("ALTER TABLE alicense ADD COLUMN LastFetchMessage text");
|
||||||
|
|
||||||
setSchemaLevel(++currentSchema);
|
// setSchemaLevel(++currentSchema);
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////
|
//////////////////////////////////////////////////
|
||||||
//DATAFILTER table
|
//DATAFILTER table
|
||||||
if (currentSchema < 8)
|
if (currentSchema < 7)
|
||||||
{
|
{
|
||||||
LogUpdateMessage(log);
|
LogUpdateMessage(log);
|
||||||
|
|
||||||
@@ -288,7 +288,7 @@ namespace AyaNova.Util
|
|||||||
|
|
||||||
//////////////////////////////////////////////////
|
//////////////////////////////////////////////////
|
||||||
// TAGS repository
|
// TAGS repository
|
||||||
if (currentSchema < 9)
|
if (currentSchema < 8)
|
||||||
{
|
{
|
||||||
LogUpdateMessage(log);
|
LogUpdateMessage(log);
|
||||||
exec("CREATE TABLE atag (id BIGSERIAL PRIMARY KEY, name varchar(255) not null, refcount bigint not null, UNIQUE(name))");
|
exec("CREATE TABLE atag (id BIGSERIAL PRIMARY KEY, name varchar(255) not null, refcount bigint not null, UNIQUE(name))");
|
||||||
@@ -299,7 +299,7 @@ namespace AyaNova.Util
|
|||||||
|
|
||||||
//////////////////////////////////////////////////
|
//////////////////////////////////////////////////
|
||||||
//FORMCUSTOM table
|
//FORMCUSTOM table
|
||||||
if (currentSchema < 10)
|
if (currentSchema < 9)
|
||||||
{
|
{
|
||||||
LogUpdateMessage(log);
|
LogUpdateMessage(log);
|
||||||
|
|
||||||
@@ -320,7 +320,7 @@ namespace AyaNova.Util
|
|||||||
|
|
||||||
//////////////////////////////////////////////////
|
//////////////////////////////////////////////////
|
||||||
// FUTURE
|
// FUTURE
|
||||||
// if (currentSchema < 9)
|
// if (currentSchema < 10)
|
||||||
// {
|
// {
|
||||||
// LogUpdateMessage(log);
|
// LogUpdateMessage(log);
|
||||||
|
|
||||||
|
|||||||
@@ -431,9 +431,9 @@ namespace AyaNova.Core
|
|||||||
{
|
{
|
||||||
ldb = new Models.License();
|
ldb = new Models.License();
|
||||||
ldb.DbId = Guid.NewGuid();
|
ldb.DbId = Guid.NewGuid();
|
||||||
ldb.LastFetchStatus = 0;
|
//ldb.LastFetchStatus = 0;
|
||||||
ldb.Key = "none";
|
ldb.Key = "none";
|
||||||
ldb.LastFetchMessage = "none";
|
//ldb.LastFetchMessage = "none";
|
||||||
ctx.License.Add(ldb);
|
ctx.License.Add(ldb);
|
||||||
ctx.SaveChanges();
|
ctx.SaveChanges();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user