Create index for request_number

This commit is contained in:
Stephan Kulow 2022-10-20 07:00:26 +02:00
parent fa9ec8618e
commit 0a3816be67

View File

@ -146,6 +146,10 @@ class DB:
REFERENCES requests (id)""", REFERENCES requests (id)""",
"UPDATE scheme SET version=10", "UPDATE scheme SET version=10",
) )
schemes[11] = (
"create index request_number_idx on revisions (request_number);",
"UPDATE scheme SET version=11",
)
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