diff --git a/src/web/grampsdb/fixtures/initial_data.json b/src/web/grampsdb/fixtures/initial_data.json index e198c2b40..c1434464e 100644 --- a/src/web/grampsdb/fixtures/initial_data.json +++ b/src/web/grampsdb/fixtures/initial_data.json @@ -18,7 +18,7 @@ "setting" : "db_created" , "description" : "database creation date/time" , "value_type" : "str" , - "value" : "2009-11-10 09:20" + "value" : "2009-11-22 11:36" } }, { diff --git a/src/web/grampsdb/sql/eventref.sql b/src/web/grampsdb/sql/eventref.sql new file mode 100644 index 000000000..d7b32810e --- /dev/null +++ b/src/web/grampsdb/sql/eventref.sql @@ -0,0 +1,5 @@ +CREATE INDEX grampsdb_name_surname + ON grampsdb_name (surname, first_name); + +CREATE INDEX grampsdb_eventref_object_id_object_type_id + ON grampsdb_eventref (object_id, object_type_id); diff --git a/src/web/init.py b/src/web/init.py index b40dbd734..d126117ee 100644 --- a/src/web/init.py +++ b/src/web/init.py @@ -35,7 +35,7 @@ for table, entries in [("grampsdb.config", [(("setting", "\"db_version\""), ("description", "\"database scheme version\""), ("value_type", "\"str\""), - ("value", "\"0.5.0\"")), + ("value", "\"0.5.1\"")), (("setting", "\"db_created\""), ("description", "\"database creation date/time\""), ("value_type", "\"str\""), diff --git a/src/web/init_gramps.py b/src/web/init_gramps.py index d98fa6936..d17eb5996 100644 --- a/src/web/init_gramps.py +++ b/src/web/init_gramps.py @@ -8,4 +8,4 @@ import settings import grampsdb.models as dj -dj.clear_tables("primary", "secondary") +dj.clear_tables("primary", "secondary", "ref") diff --git a/src/web/sqlite.db b/src/web/sqlite.db index 409395219..97d4b459f 100644 Binary files a/src/web/sqlite.db and b/src/web/sqlite.db differ