add domain

This commit is contained in:
j 2009-08-20 19:38:10 +02:00
parent 88a8c5c923
commit f691867e1d
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ def _connectDb():
def _createDb(c):
# Create table and indexes
c.execute('''CREATE TABLE IF NOT EXISTS cache (url_hash varchar(42) unique, url text,
c.execute('''CREATE TABLE IF NOT EXISTS cache (url_hash varchar(42) unique, domain text, url text,
post_data text, headers text, created int, data blob, only_headers int)''')
c.execute('''CREATE INDEX IF NOT EXISTS cache_domain ON cache (domain)''')
c.execute('''CREATE INDEX IF NOT EXISTS cache_url ON cache (url)''')