Release 0.0.2
Soooo much stuff. Features, bugfixes, all that.
This commit is contained in:
parent
b9692b451e
commit
f4bbd15c68
40 changed files with 6916 additions and 1209 deletions
34
pappyproxy/schema/schema_3.py
Normal file
34
pappyproxy/schema/schema_3.py
Normal file
|
@ -0,0 +1,34 @@
|
|||
from pappyproxy import http
|
||||
from twisted.internet import defer
|
||||
|
||||
"""
|
||||
Schema v3
|
||||
|
||||
Description:
|
||||
Adds tables to store tags associated with requests
|
||||
"""
|
||||
|
||||
update_queries = [
|
||||
"""
|
||||
CREATE TABLE tags (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
tag TEXT NOT NULL
|
||||
);
|
||||
""",
|
||||
|
||||
"""
|
||||
CREATE TABLE tagged (
|
||||
reqid INTEGER REFERENCES requests(id),
|
||||
tagid INTEGER REFERENCES tags(id)
|
||||
);
|
||||
""",
|
||||
|
||||
"""
|
||||
UPDATE schema_meta SET version=3;
|
||||
""",
|
||||
]
|
||||
|
||||
@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