Added indexes; clean properly; updated db schema version num to 0.5.1 (added indexes)
svn: r13652
This commit is contained in:
parent
bfdb19d182
commit
828ec034c9
@ -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"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
5
src/web/grampsdb/sql/eventref.sql
Normal file
5
src/web/grampsdb/sql/eventref.sql
Normal 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);
|
@ -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\""),
|
||||
|
@ -8,4 +8,4 @@ import settings
|
||||
|
||||
import grampsdb.models as dj
|
||||
|
||||
dj.clear_tables("primary", "secondary")
|
||||
dj.clear_tables("primary", "secondary", "ref")
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user