You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
441 B
23 lines
441 B
from twisted.internet import defer |
|
|
|
""" |
|
Schema v7 |
|
|
|
Creates an index for requests on start time in the data file. This will make |
|
iterating through history a bit faster. |
|
""" |
|
|
|
update_queries = [ |
|
""" |
|
CREATE INDEX ind_start_time ON requests(start_datetime); |
|
""", |
|
|
|
""" |
|
UPDATE schema_meta SET version=7; |
|
""" |
|
] |
|
|
|
@defer.inlineCallbacks |
|
def update(dbpool): |
|
for query in update_queries: |
|
yield dbpool.runQuery(query)
|
|
|