| @echo off | |
| setlocal | |
| call "%~dp0activate_env.bat" | |
| if exist "%DEVTOOLS_ROOT%\pgsql_data" ( | |
| echo [INFO] PostgreSQL data directory already exists. | |
| ) else ( | |
| echo [INFO] Initializing new PostgreSQL data directory... | |
| initdb -U postgres -A trust -E utf8 --locale=C | |
| echo [SUCCESS] PostgreSQL initialized successfully! | |
| ) | |
| endlocal | |