This commit is contained in:
2020-04-15 22:10:38 +00:00
parent 08263e1dc7
commit c0f51665c6
2 changed files with 5 additions and 4 deletions

View File

@@ -22,6 +22,7 @@ namespace AyaNova.Models
public virtual DbSet<Tag> Tag { get; set; }
public virtual DbSet<FormCustom> FormCustom { get; set; }
public virtual DbSet<PickListTemplate> PickListTemplate { get; set; }
public virtual DbSet<WikiPage> WikiPage { get; set; }
//Note: had to add this constructor to work with the code in startup.cs that gets the connection string from the appsettings.json file

View File

@@ -20,10 +20,10 @@ namespace AyaNova.Util
/////////// CHANGE THIS ON NEW SCHEMA UPDATE ////////////////////
//!!!!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 = 11;
internal const long EXPECTED_COLUMN_COUNT = 101;
internal const long EXPECTED_INDEX_COUNT = 28;
internal const long EXPECTED_COLUMN_COUNT = 105;
internal const long EXPECTED_INDEX_COUNT = 33;
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!
@@ -327,7 +327,7 @@ namespace AyaNova.Util
//INDEX: Most selective first as there is more unique ID's than unique types
//to take advantage of this always query with where objectid=xx and objecttype=yy order
await ExecQueryAsync("CREATE INDEX awikipage_typeid_idx ON awikipage (objectid, objectype );");
await ExecQueryAsync("CREATE INDEX awikipage_typeid_idx ON awikipage (objectid, objecttype );");
await SetSchemaLevelAsync(++currentSchema);
}