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(): def create_tables():
qt = ''' qt = '''
CREATE TABLE IF NOT EXISTS queries ( CREATE TABLE IF NOT EXISTS queries (
id integer primary key autoincrement,
source text, source text,
query_type text, query_type text,
name text, name text,
@ -74,7 +73,6 @@ def create_tables():
ft = ''' ft = '''
CREATE TABLE IF NOT EXISTS forwards ( CREATE TABLE IF NOT EXISTS forwards (
id integer primary key autoincrement,
resolver text, resolver text,
name text, name text,
ts datetime ts datetime
@ -85,7 +83,6 @@ def create_tables():
rt = ''' rt = '''
CREATE TABLE IF NOT EXISTS replies ( CREATE TABLE IF NOT EXISTS replies (
id integer primary key autoincrement,
ip text, ip text,
reply_type text, reply_type text,
name text, name text,

View file

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