This commit is contained in:
@@ -23,7 +23,7 @@ namespace AyaNova.Util
|
|||||||
private const int DESIRED_SCHEMA_LEVEL = 9;
|
private const int DESIRED_SCHEMA_LEVEL = 9;
|
||||||
|
|
||||||
internal const long EXPECTED_COLUMN_COUNT = 108;
|
internal const long EXPECTED_COLUMN_COUNT = 108;
|
||||||
internal const long EXPECTED_INDEX_COUNT = 24;
|
internal const long EXPECTED_INDEX_COUNT = 25;
|
||||||
|
|
||||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::PrepareDatabaseForSeeding WHEN NEW TABLES ADDED!!!!
|
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::PrepareDatabaseForSeeding WHEN NEW TABLES ADDED!!!!
|
||||||
|
|
||||||
@@ -214,6 +214,9 @@ namespace AyaNova.Util
|
|||||||
//Compound index for name fetching
|
//Compound index for name fetching
|
||||||
exec("CREATE UNIQUE INDEX awidget_name_id_idx ON awidget (id, name);");
|
exec("CREATE UNIQUE INDEX awidget_name_id_idx ON awidget (id, name);");
|
||||||
|
|
||||||
|
//Index for tags
|
||||||
|
exec("CREATE INDEX awidget_tags ON AWIDGET using GIN(tags)");
|
||||||
|
|
||||||
setSchemaLevel(++currentSchema);
|
setSchemaLevel(++currentSchema);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user