Version 0.2.2
This commit is contained in:
parent
d8dfcd3e24
commit
9a14a5541a
15 changed files with 519 additions and 114 deletions
23
pappyproxy/schema/schema_7.py
Normal file
23
pappyproxy/schema/schema_7.py
Normal file
|
@ -0,0 +1,23 @@
|
|||
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)
|
Loading…
Add table
Add a link
Reference in a new issue