Add hash field to database
This commit is contained in:
parent
a1dd612e82
commit
1aa988d9d6
2
parse
2
parse
|
@ -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…
Reference in a new issue