Added indexes; clean properly; updated db schema version num to 0.5.1 (added indexes)

svn: r13652
This commit is contained in:
Doug Blank 2009-11-22 16:43:15 +00:00
parent bfdb19d182
commit 828ec034c9
5 changed files with 8 additions and 3 deletions

View File

@ -18,7 +18,7 @@
"setting" : "db_created" , "setting" : "db_created" ,
"description" : "database creation date/time" , "description" : "database creation date/time" ,
"value_type" : "str" , "value_type" : "str" ,
"value" : "2009-11-10 09:20" "value" : "2009-11-22 11:36"
} }
}, },
{ {

View File

@ -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);

View File

@ -35,7 +35,7 @@ for table, entries in [("grampsdb.config",
[(("setting", "\"db_version\""), [(("setting", "\"db_version\""),
("description", "\"database scheme version\""), ("description", "\"database scheme version\""),
("value_type", "\"str\""), ("value_type", "\"str\""),
("value", "\"0.5.0\"")), ("value", "\"0.5.1\"")),
(("setting", "\"db_created\""), (("setting", "\"db_created\""),
("description", "\"database creation date/time\""), ("description", "\"database creation date/time\""),
("value_type", "\"str\""), ("value_type", "\"str\""),

View File

@ -8,4 +8,4 @@ import settings
import grampsdb.models as dj import grampsdb.models as dj
dj.clear_tables("primary", "secondary") dj.clear_tables("primary", "secondary", "ref")

Binary file not shown.