Added three columns to database's table

This commit is contained in:
salvadorpla 2019-12-05 12:56:22 +01:00
pare be741e599a
commit 294f8d5709

Veure arxiu

@ -141,8 +141,8 @@ print("Creating table...")
db = mailing_db db = mailing_db
db_user = mailing_db_user db_user = mailing_db_user
table = mailing_db_table table = mailing_db_table
sql = "create table "+table+" (datetime timestamptz, account_id int primary key, username varchar(30), email varchar(50), emailed_at timestamptz, emailed boolean default False, deleted boolean default False, elapse_days varchar(30))" sql = """create table "+table+" (datetime timestamptz, account_id int primary key, username varchar(30), email varchar(50), emailed_at timestamptz, emailed boolean default False, deleted boolean default False,
elapse_days varchar(30), to_be_deleted boolean default False, recipient_error boolean default False, feedback boolean default False)"""
create_table(db, db_user, table, sql) create_table(db, db_user, table, sql)
##################################### #####################################