fix: removed NOT NULL specification for non primary keys

This commit is contained in:
Leonard Excoffier
2024-08-31 18:26:14 -04:00
parent 4c9b2e46c1
commit 84b20e1496

View File

@@ -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