Permalink
Browse files

Remove unneeded id fields for cross-db compatibility

  • Loading branch information...
jgor committed Sep 25, 2018
1 parent 6f21cad commit 82479d3dbaaf782ce45903b1c0ee5cda780ad722
Showing with 2 additions and 2 deletions.
  1. +2 −2 dorkbot.py
View
@@ -190,8 +190,8 @@ def __init__(self, database):
try:
c = self.db.cursor()
c.execute("CREATE TABLE IF NOT EXISTS targets (id INTEGER PRIMARY KEY, url TEXT UNIQUE)")
c.execute("CREATE TABLE IF NOT EXISTS fingerprints (id INTEGER PRIMARY KEY, fingerprint TEXT UNIQUE, scanned TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL)")
c.execute("CREATE TABLE IF NOT EXISTS targets (url TEXT UNIQUE)")
c.execute("CREATE TABLE IF NOT EXISTS fingerprints (fingerprint TEXT UNIQUE, scanned TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL)")
self.db.commit()
c.close()
except self.module.Error as e:

0 comments on commit 82479d3

Please sign in to comment.