bd unconditionally ran CREATE DATABASE IF NOT EXISTS on every connection. When connecting to the wrong server (auto-started from .beads/dolt/ or Homebrew default), this created an empty shadow database hiding real data. Changes: - Add CreateIfMissing field to Config — only bd init sets it true - SHOW DATABASES LIKE check before CREATE (with underscore escaping) - Network error handling for SHOW DATABASES failure - Suppress auto-start when metadata.json has explicit dolt_server_port - Fix backup git push across .beads/redirect (findGitRoot) - Fix macOS CanonicalizePath case resolution (walk dirs, not realpath) - Add CreateIfMissing to all migration and create paths - 10 regression tests covering guard, auto-start, ReadOnly, underscore - CHANGELOG and TROUBLESHOOTING docs Authored by: Aaron Lippold<lippold@gmail.com> |
||
|---|---|---|
| .. | ||
| id_parser.go | ||
| id_parser_test.go | ||
| issue_446_test.go | ||
| issue_id.go | ||
| path.go | ||
| path_test.go | ||
| strings.go | ||
| strings_test.go | ||
| testmain_test.go | ||