Commit graph

2 commits

Author SHA1 Message Date
576ae64fa3 Fix migration 002: psql does not interpolate :'var' inside DO $$ blocks
CREATE ROLE ... PASSWORD :'teecup_app_password' silently failed with
"syntax error at or near ':'" because the whole DO $$ ... $$ body is a
dollar-quoted string and psql skips variable substitution inside it.
Replaced the idempotency check with \gset + \if/\else so the PASSWORD
line is plain top-level SQL, where interpolation does work. Verified
against a scratch database (see test_isolation.sql run).
2026-07-16 08:24:48 +02:00
1b5362201e Utgangspunktet 2026-07-16 07:26:04 +02:00