Add hash field to database

master
Sven Slootweg 13 years ago
parent a1dd612e82
commit 1aa988d9d6

@ -17,7 +17,7 @@ database = sqlite3.connect('emails.db').cursor()
try:
# Try to create the table
database.execute("CREATE TABLE emails (`message_id`, `from`, `to`, `subject`, `date`, `body`, `html`)")
database.execute("CREATE TABLE emails (`message_id`, `from`, `to`, `subject`, `date`, `body`, `html`, `hash`)")
except sqlite3.OperationalError:
# Table already exists
pass

Loading…
Cancel
Save