Log newsletter start/end date and uuid

This commit is contained in:
JonnyWong16 2018-03-17 23:58:39 -07:00
commit c9618322c2
4 changed files with 76 additions and 40 deletions

View file

@ -637,7 +637,7 @@ def dbcheck():
c_db.execute(
'CREATE TABLE IF NOT EXISTS newsletter_log (id INTEGER PRIMARY KEY AUTOINCREMENT, timestamp INTEGER, '
'newsletter_id INTEGER, agent_id INTEGER, agent_name TEXT, notify_action TEXT, '
'subject_text TEXT, success INTEGER DEFAULT 0)'
'subject_text TEXT, start_date TEXT, end_date TEXT, uuid TEXT UNIQUE, success INTEGER DEFAULT 0)'
)
# poster_urls table :: This table keeps record of the notification poster urls