diff --git a/.gitsecret/paths/mapping.cfg b/.gitsecret/paths/mapping.cfg index 46083e8..e69de29 100644 --- a/.gitsecret/paths/mapping.cfg +++ b/.gitsecret/paths/mapping.cfg @@ -1 +0,0 @@ -db/backups/20200408.sql.gz:b365bf5fc13dbbe26d93e88f6523451b092999edc2a3f0680482f3a7e7369468 diff --git a/db/backups/.gitignore b/db/backups/.gitignore deleted file mode 100644 index bdf5868..0000000 --- a/db/backups/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -* -!.gitignore -!*.secret \ No newline at end of file diff --git a/db/backups/20200408.sql.gz.secret b/db/backups/20200408.sql.gz.secret deleted file mode 100644 index 032a648..0000000 Binary files a/db/backups/20200408.sql.gz.secret and /dev/null differ diff --git a/db/fmp_to_postgres.py b/db/fmp_to_postgres.py index aee5b59..1a2353b 100644 --- a/db/fmp_to_postgres.py +++ b/db/fmp_to_postgres.py @@ -125,7 +125,7 @@ def main(argv): for fk_field, fk_table in fk_fields: pk_fk_table = all_data[fk_table][0] - # POTENTIALLY SUS: ASSUMES WE ARE ALWAYS LINKING TO THE PK OF THE TABLE + # ASSUMES WE ARE ALWAYS LINKING TO THE PK OF THE TABLE constraint_name = f"fk_{fk_table}_id" psql.execute_command(f"ALTER TABLE {table_name} ALTER COLUMN {fk_field} TYPE numeric USING {fk_field}::numeric;") diff --git a/db/20200425.log b/db/logs/20200425.log similarity index 100% rename from db/20200425.log rename to db/logs/20200425.log diff --git a/db/psql.py b/db/psql.py index 28c370c..47beafc 100644 --- a/db/psql.py +++ b/db/psql.py @@ -1,4 +1,3 @@ -# import some python ORM for SQl import pandas as pd import sqlalchemy as database