more queries, more indices. index oonker
This commit is contained in:
parent
216907c4c0
commit
9c20a5c321
|
@ -10,6 +10,7 @@ create table doovers(dooverid integer primary key, dt text, tries integer, usern
|
|||
create index idx_honksxid on honks(xid);
|
||||
create index idx_honksconvoy on honks(convoy);
|
||||
create index idx_honkshonker on honks(honker);
|
||||
create index idx_honksoonker on honks(oonker);
|
||||
create index idx_honkerxid on honkers(xid);
|
||||
create index idx_xonkername on xonkers(name);
|
||||
create index idx_zonkersname on zonkers(name);
|
||||
|
|
|
@ -106,6 +106,9 @@ func upgradedb() {
|
|||
doordie(db, "update users set options = ''")
|
||||
doordie(db, "update config set value = 12 where key = 'dbversion'")
|
||||
case 12:
|
||||
doordie(db, "create index idx_honksoonker on honks(oonker)")
|
||||
doordie(db, "update config set value = 13 where key = 'dbversion'")
|
||||
case 13:
|
||||
default:
|
||||
log.Fatalf("can't upgrade unknown version %d", dbversion)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue