mirror of
https://github.com/Haiti-Distributed-Healthcare-System/hdhs.git
synced 2026-10-26 17:35:23 +00:00
Merge branch 'dev' into feature/data_validation_t77
This commit is contained in:
commit
66724d153e
6 files changed
+1
-6
No files matched your search
@@ -1 +0,0 @@
|
||||
db/backups/20200408.sql.gz:b365bf5fc13dbbe26d93e88f6523451b092999edc2a3f0680482f3a7e7369468
|
||||
@@ -1,3 +0,0 @@
|
||||
*
|
||||
!.gitignore
|
||||
!*.secret
|
||||
Binary file not shown.
@@ -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;")
|
||||
|
||||
File renamed without changes.
@@ -1,4 +1,3 @@
|
||||
# import some python ORM for SQl
|
||||
import pandas as pd
|
||||
import sqlalchemy as database
|
||||
|
||||
|
||||
Reference in new issue
Block a user