Fixed checking db_config params and changed email column type to bigint
This commit is contained in:
parent
c7b5deb32a
commit
130fbdbdbd
3 changed files with 3 additions and 3 deletions
|
@ -146,7 +146,7 @@ if __name__ == '__main__':
|
|||
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(60), emailed_at timestamptz,"
|
||||
sql = "create table " + table + "(datetime timestamptz, account_id bigint primary key, username varchar(30), email varchar(60), emailed_at timestamptz,"
|
||||
sql += "emailed boolean default False, deleted boolean default False, elapsed_days varchar(30), to_be_deleted boolean default False,"
|
||||
sql += "recipient_error boolean default False, feedback boolean default False, current_sign_in_at timestamptz)"
|
||||
create_table(db, db_user, table, sql)
|
||||
|
|
|
@ -37,7 +37,7 @@ def get_parameter( parameter, file_path ):
|
|||
if not os.path.isfile(file_path):
|
||||
if file_path == "secrets/secrets.txt":
|
||||
print("File %s not found, exiting. Run setup.py."%file_path)
|
||||
elif file_path == "config.txt":
|
||||
elif file_path == "config/db_config.txt":
|
||||
print("File %s not found, exiting. Run db-setup.py."%file_path)
|
||||
sys.exit(0)
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
psycopg2-binary>=2.8.4
|
||||
psycopg2-binary
|
||||
|
|
Loading…
Reference in a new issue