176
176
self.db.text_factory = str
177
177
self.db.executescript("""
179
183
create index if not exists commit_sha1 on commits(sha1);
180
184
create unique index if not exists commit_revid on commits(revid);
182
190
create index if not exists blobs_sha1 on blobs(sha1);
183
191
create unique index if not exists blobs_fileid_revid on blobs(fileid, revid);
185
197
create index if not exists trees_sha1 on trees(sha1);
186
198
create unique index if not exists trees_fileid_revid on trees(fileid, revid);