portable-devtools / scripts /init_postgres.bat
codekingpro's picture
Add files using upload-large-folder tool
e98b0a7 verified
Raw
History Blame Contribute Delete
335 Bytes
@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