Skip to content

Fix code-review findings from the migrate apply queueing change - #20

Merged
aersam merged 1 commit into
mainfrom
add-migrate-command
Aug 27, 2026
Merged

aersam merged 1 commit into
mainfrom
add-migrate-command

Conversation

@aersam

@aersam aersam commented Aug 27, 2026

Copy link
Copy Markdown
Contributor
  • Lock tqdm bar.update()/bar.write() calls: both the worker thread and the --ask review loop call into the same tqdm instance, which isn't guaranteed thread-safe without an explicit lock.
  • Warn (instead of silently treating every file as pending) when the tracking table is missing on apply, matching migrate check's behavior.
  • Fix the CREATE TABLE regex fallback to stop at '(' as well as whitespace, so CREATE TABLE foo(id int) parses as foo instead of foo(id, which was making apply wrongly report a successful migration as failed verification.

Bump version to 0.3.4.

Claude-Session: https://claude.ai/code/session_01MsW4bjEgHHQKvmCReYzyNg

- Lock tqdm bar.update()/bar.write() calls: both the worker thread and
  the --ask review loop call into the same tqdm instance, which isn't
  guaranteed thread-safe without an explicit lock.
- Warn (instead of silently treating every file as pending) when the
  tracking table is missing on apply, matching migrate check's behavior.
- Fix the CREATE TABLE regex fallback to stop at '(' as well as
  whitespace, so `CREATE TABLE foo(id int)` parses as `foo` instead of
  `foo(id`, which was making apply wrongly report a successful
  migration as failed verification.

Bump version to 0.3.4.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MsW4bjEgHHQKvmCReYzyNg
@aersam
aersam merged commit 9280e3d into main Aug 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant