fix: removed NOT NULL specification for non primary keys
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user