From 94d9a501de51e9a0cbabf25a2621f46b3561816e Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Fri, 13 Oct 2017 03:23:41 -0400 Subject: [PATCH] add batch file to re-create database --- rebuild_pg.cmd | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 rebuild_pg.cmd diff --git a/rebuild_pg.cmd b/rebuild_pg.cmd new file mode 100644 index 0000000..1dd943e --- /dev/null +++ b/rebuild_pg.cmd @@ -0,0 +1,4 @@ +"C:\PostgreSQL\pg10\bin\psql" -h localhost -p 5433 -d postgres -U postgres -c "DROP DATABASE ubm" +"C:\PostgreSQL\pg10\bin\psql" -h localhost -p 5433 -d postgres -U postgres -c "CREATE DATABASE ubm" +"C:\PostgreSQL\pg10\bin\psql" -h localhost -p 5433 -d ubm -U postgres -f "C:\users\fleet\documents\tps_etl\ubm_schema.sql" +"C:\PostgreSQL\pg10\bin\psql" -h localhost -p 5433 -d ubm -U postgres -f "C:\users\fleet\documents\tps_etl\ubm_data.sql"