diff --git a/srce.pgsql b/srce.pgsql index 783428f..beaa58a 100644 --- a/srce.pgsql +++ b/srce.pgsql @@ -1,48 +1,3 @@ -/* -SELECT -jsonb_pretty( -$$ -{ - "name": "GOOGDM", - "type": "json_csv", - "schema": { - "rows": [ - { - "elements": [ - { - "status": "text", - "distance": { - "text": "text", - "value": "numeric" - }, - "duration": { - "text": "text", - "value": "value" - } - } - ] - } - ], - "status": "text", - "origin_addresses": [ - "text" - ], - "destination_addresses": [ - "text" - ] - }, - "unique_constraint": { - "type": "key", - "fields": [ - "{origin_adresses,0}", - "{destination_adresses,0}" - ] - } -} -$$::jsonb -) -*/ - DO $$ declare _t text; diff --git a/ubm_backup.cmd b/ubm_backup.cmd index 710b1e4..3d120ca 100644 --- a/ubm_backup.cmd +++ b/ubm_backup.cmd @@ -1,2 +1,2 @@ "C:\PostgreSQL\pg10\bin\pg_dump" -h localhost -p 5433 -U ptrowbridge -d ubm -s -O -F p -f "C:\users\ptrowbridge\Documents\tps_etl\ubm_schema.sql" -"C:\PostgreSQL\pg10\bin\pg_dump" -h localhost -p 5433 -U ptrowbridge -d ubm --column-inserts -a -O -F p -f "C:\users\ptrowbridge\Documents\tps_etl\ubm_data.backup" \ No newline at end of file +"C:\PostgreSQL\pg10\bin\pg_dump" -h localhost -p 5433 -U ptrowbridge -d ubm --column-inserts -a -O -F p -f "C:\users\ptrowbridge\Documents\tps_etl\ubm_data.sql" \ No newline at end of file diff --git a/ubm_data.backup b/ubm_data.sql similarity index 100% rename from ubm_data.backup rename to ubm_data.sql