forked from importers/git-importer
Add also an index to the requests table
This commit is contained in:
parent
0a3816be67
commit
988b10e4b7
@ -147,9 +147,14 @@ class DB:
|
|||||||
"UPDATE scheme SET version=10",
|
"UPDATE scheme SET version=10",
|
||||||
)
|
)
|
||||||
schemes[11] = (
|
schemes[11] = (
|
||||||
"create index request_number_idx on revisions (request_number);",
|
"create index request_number_idx on revisions (request_number)",
|
||||||
"UPDATE scheme SET version=11",
|
"UPDATE scheme SET version=11",
|
||||||
)
|
)
|
||||||
|
schemes[12] = (
|
||||||
|
"create index request_number_idx2 on requests(number)",
|
||||||
|
"UPDATE scheme SET version=12",
|
||||||
|
)
|
||||||
|
|
||||||
schema_version = self.schema_version()
|
schema_version = self.schema_version()
|
||||||
if (schema_version + 1) not in schemes:
|
if (schema_version + 1) not in schemes:
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user