* cmd/bd: extract sanitizeDBName to its own file for CGO_ENABLED=0 lint sanitizeDBName lived in store_factory.go which is //go:build cgo, but init.go (no tag) calls it. The pre-commit golangci-lint runs with CGO_ENABLED=0 and flagged it as undefined. Move the pure-Go function to its own untagged file and drop the now-unused strings import from store_factory.go. No behavior change. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * schema: tolerate "does not have column" errors in migration runner Broadens isConcurrentInitError to also treat "does not have column" as a benign migration error, symmetric with the existing "duplicate column" tolerance for ADD races. Makes DROP COLUMN migrations idempotent across databases bootstrapped with different base schemas. Observed failure: migration 0032 (DROP COLUMN applied_at) loops forever on any database that lands at v31 without the column. Dolt has no DROP COLUMN IF EXISTS, so the SQL itself can't be guarded; handling it in the runner keeps the migration file trivial. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * Add migration 0032 idempotence tests (bd-7mh.3) * Document bd execution metadata workflow (bd-b1a) * Revert "Document bd execution metadata workflow (bd-b1a)" This reverts commit |
||
|---|---|---|
| .. | ||
| migrations | ||
| helpers.go | ||
| ignored_tables.go | ||
| ignored_tables_test.go | ||
| schema.go | ||
| schema_test.go | ||
| views.go | ||