Searches are not saved to database

This commit is contained in:
Simon
2018-06-27 15:29:50 -04:00
parent 14037c5f21
commit 5383ad6aea
3 changed files with 57 additions and 48 deletions

View File

@@ -44,3 +44,14 @@ CREATE TABLE TaskResult (
FOREIGN KEY (server) REFERENCES CrawlServer(id)
);
CREATE TABLE SearchLogEntry (
id INTEGER PRIMARY KEY,
search_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
remote_addr TEXT,
forwarded_for TEXT,
query TEXT,
extensions TEXT,
page INT
);