From 84b20e1496469d60eab1800f3f357ea6fcfbffe0 Mon Sep 17 00:00:00 2001 From: Leonard Excoffier <48970393+excoffierleonard@users.noreply.github.com> Date: Sat, 31 Aug 2024 18:26:14 -0400 Subject: [PATCH] fix: removed NOT NULL specification for non primary keys --- write_to_db.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/write_to_db.py b/write_to_db.py index 5e83df1..b714f3b 100644 --- a/write_to_db.py +++ b/write_to_db.py @@ -21,10 +21,10 @@ engine = create_engine(connection_string) # Define a list of file paths and corresponding table names file_paths = [ - ('sec_data/2009q3/sub.txt', 'sub'), - ('sec_data/2009q3/tag.txt', 'tag'), - ('sec_data/2009q3/num.txt', 'num'), - ('sec_data/2009q3/pre.txt', 'pre') + ('sec_data/2015q1/sub.txt', 'sub'), + ('sec_data/2015q1/tag.txt', 'tag'), + ('sec_data/2015q1/num.txt', 'num'), + ('sec_data/2015q1/pre.txt', 'pre') ] # Loop through each file and write the data to the database