forked from lizardoluis/ast_postgis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-ast_postgis-15.bat
23 lines (17 loc) · 1.17 KB
/
install-ast_postgis-15.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@echo off
set /p PGUSER="Insert the username for PostgreSQL: "
set /p PGPASSWORD="Insert the password for PostgreSQL: "
set /p PGDATABASE="Insert the schema name to each ast_postgis should be installed: "
echo "Enabling the extension PostGIS"
"C:/Program Files/PostgreSQL/15/bin/psql.exe" -h localhost < "%~dp0\sql\postgis.sql"
echo "Installing the ast_postgis."
"C:/Program Files/PostgreSQL/15/bin/psql.exe" -h localhost < "%~dp0\sql\tables.sql"
"C:/Program Files/PostgreSQL/15/bin/psql.exe" -h localhost < "%~dp0\sql\types.sql"
"C:/Program Files/PostgreSQL/15/bin/psql.exe" -h localhost < "%~dp0\sql\type_functions.sql"
"C:/Program Files/PostgreSQL/15/bin/psql.exe" -h localhost < "%~dp0\sql\utils.sql"
"C:/Program Files/PostgreSQL/15/bin/psql.exe" -h localhost < "%~dp0\sql\domain_functions.sql"
"C:/Program Files/PostgreSQL/15/bin/psql.exe" -h localhost < "%~dp0\sql\domains.sql"
"C:/Program Files/PostgreSQL/15/bin/psql.exe" -h localhost < "%~dp0\sql\relationship_triggers.sql"
"C:/Program Files/PostgreSQL/15/bin/psql.exe" -h localhost < "%~dp0\sql\event_triggers.sql"
"C:/Program Files/PostgreSQL/15/bin/psql.exe" -h localhost < "%~dp0\sql\consistency_functions.sql"
pause