Remove idx creation, sqlite3 handles this automatically.

This commit is contained in:
Dan Schaper 2016-10-02 11:36:00 -07:00
parent 64b91c8b97
commit 9f29bef173
2 changed files with 0 additions and 4 deletions

View file

@ -62,7 +62,6 @@ r_re = re.compile(r'(.*) dnsmasq\[\d+\]: (reply|cached) (.*) is (.*)')
def create_tables():
qt = '''
CREATE TABLE IF NOT EXISTS queries (
id integer primary key autoincrement,
source text,
query_type text,
name text,
@ -74,7 +73,6 @@ def create_tables():
ft = '''
CREATE TABLE IF NOT EXISTS forwards (
id integer primary key autoincrement,
resolver text,
name text,
ts datetime
@ -85,7 +83,6 @@ def create_tables():
rt = '''
CREATE TABLE IF NOT EXISTS replies (
id integer primary key autoincrement,
ip text,
reply_type text,
name text,

View file

@ -33,7 +33,6 @@ with conn:
# Ready new table for list of domains
gt = '''
CREATE TABLE IF NOT EXISTS gravity (
idx INTEGER PRIMARY KEY ASC,
domain text
)
'''