From 811fbb90f2761ff7a93fe786acaf87e3a630819d Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Fri, 13 Oct 2017 11:41:43 -0400 Subject: [PATCH] add rebuild script --- 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..2c3a491 --- /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\ptrowbridge\documents\tps_etl\ubm_schema.sql" +"C:\PostgreSQL\pg10\bin\psql" -h localhost -p 5433 -d ubm -U postgres -f "C:\users\ptrowbridge\documents\tps_etl\ubm_data.sql"