This commit is contained in:
spla 2020-05-22 09:11:31 +02:00
pare 9924a33d2d
commit ea2b418c6a

Veure arxiu

@ -1,7 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pdb
import getpass
import os
import sys
@ -141,8 +140,9 @@ print("Creating table...")
db = mailing_db
db_user = mailing_db_user
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), to_be_deleted boolean default False, recipient_error boolean default False, feedback boolean default False)"""
sql = "create table " + table + "(datetime timestamptz, account_id int primary key, username varchar(30), email varchar(50), emailed_at timestamptz,"
sql += "emailed boolean default False, deleted boolean default False, elapse_days varchar(30), to_be_deleted boolean default False,"
sql += "recipient_error boolean default False, feedback boolean default False)"
create_table(db, db_user, table, sql)
#####################################