diff --git a/server/AyaNova/biz/LocaleBiz.cs b/server/AyaNova/biz/LocaleBiz.cs index a573a850..9a385791 100644 --- a/server/AyaNova/biz/LocaleBiz.cs +++ b/server/AyaNova/biz/LocaleBiz.cs @@ -57,6 +57,7 @@ namespace AyaNova.Biz NewLocale.Name = inObj.Name; NewLocale.OwnerId = this.userId; NewLocale.Stock = false; + NewLocale.CjkIndex=false; foreach (LocaleItem i in SourceLocale.LocaleItems) { NewLocale.LocaleItems.Add(new LocaleItem() { Key = i.Key, Display = i.Display }); diff --git a/server/AyaNova/biz/PrimeData.cs b/server/AyaNova/biz/PrimeData.cs index 1fe6cf95..e0e5c8e9 100644 --- a/server/AyaNova/biz/PrimeData.cs +++ b/server/AyaNova/biz/PrimeData.cs @@ -85,6 +85,7 @@ namespace AyaNova.Biz l.Name = localeCode; l.OwnerId = 1; l.Stock = true; + l.CjkIndex=false; foreach (JToken t in o.Children()) { diff --git a/server/AyaNova/models/Locale.cs b/server/AyaNova/models/Locale.cs index 6740c8a9..2f57dc54 100644 --- a/server/AyaNova/models/Locale.cs +++ b/server/AyaNova/models/Locale.cs @@ -8,7 +8,7 @@ using Newtonsoft.Json; namespace AyaNova.Models { -// [JsonObject(IsReference = true)] + // [JsonObject(IsReference = true)] public partial class Locale { public long Id { get; set; } @@ -19,7 +19,8 @@ namespace AyaNova.Models [Required] public string Name { get; set; } public bool? Stock { get; set; } - + public bool CjkIndex { get; set; } + //Relationship //was this but.. diff --git a/server/AyaNova/util/AySchema.cs b/server/AyaNova/util/AySchema.cs index 7d070a95..daa8c5a1 100644 --- a/server/AyaNova/util/AySchema.cs +++ b/server/AyaNova/util/AySchema.cs @@ -22,7 +22,7 @@ namespace AyaNova.Util //!!!!WARNING: BE SURE TO UPDATE THE DbUtil::PrepareDatabaseForSeeding WHEN NEW TABLES ADDED!!!! private const int DESIRED_SCHEMA_LEVEL = 9; - internal const long EXPECTED_COLUMN_COUNT = 97; + internal const long EXPECTED_COLUMN_COUNT = 98; internal const long EXPECTED_INDEX_COUNT = 20; //!!!!WARNING: BE SURE TO UPDATE THE DbUtil::PrepareDatabaseForSeeding WHEN NEW TABLES ADDED!!!! @@ -140,7 +140,7 @@ namespace AyaNova.Util exec("CREATE TABLE asearchkey (id BIGSERIAL PRIMARY KEY, wordid bigint not null REFERENCES asearchdictionary (id), objectid bigint not null, objecttype integer not null, inname bool not null)"); //create locale text tables - exec("CREATE TABLE alocale (id BIGSERIAL PRIMARY KEY, ownerid bigint not null, name varchar(255) not null, stock bool)"); + exec("CREATE TABLE alocale (id BIGSERIAL PRIMARY KEY, ownerid bigint not null, name varchar(255) not null, stock bool, cjkindex bool default false)"); exec("CREATE UNIQUE INDEX localename_idx ON alocale (name)"); exec("CREATE TABLE alocaleitem (id BIGSERIAL PRIMARY KEY, localeid bigint not null REFERENCES alocale (id), key text not null, display text not null)"); exec("CREATE INDEX localeitemlid_key_idx ON alocaleitem (localeid,key)");