Commit graph

3 commits

Author SHA1 Message Date
a0264e5e94 fix(setup): escape DO $$ in PowerShell heredoc
Use escaped $$ delimiters inside the SQL block so PowerShell does not treat them as interpolation and break init_pg on first-run setup.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-06 17:13:31 +08:00
46745b372f fix(setup): escape PowerShell vars in printed DATABASE URL
Use ${...} interpolation in init_pg output to avoid InvalidVariableReferenceWithDrive when rendering user:password@host:port.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-06 17:00:04 +08:00
32bfa78383 feat(setup): add idempotent PostgreSQL bootstrap script for first install
Provide a Windows init script to create/repair the netx role and database with a connection check, and document the step in README so new machines avoid initial auth failures.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-06 16:47:12 +08:00