Files
coder/cli
Kiryl cfab758390 feat(cli): log database migration progress on server startup (#31790)
`coder server` now logs migration progress at startup:
`ConnectToPostgres` passes a `migrations` logger to the migration
function. Commands that connect without migrating are unchanged.

Example: an instance waiting for another instance's migration lock.

```
[info]  migrations: still waiting for database migration lock  elapsed_ms=10007  state=waiting_on_lock  wait_event=advisory  blocked_by=173
```

Verified with two instances upgrading a v2.37.0 database (54 pending
migrations) while another session locked `templates`: both started,
schema ended at 639.

Closes ENT-237

_Written with Claude Code and Coder Agents, reviewed and tested by
@kirstaeff._
2026-11-23 13:10:16 +01:00
..
…