Route both upsert and delete branches off a single ranked CTE (rn=1 per RecordID over all pending ops ordered by SourceLogID DESC). The previous design used two independent ranked CTEs, which let a stale Delete outrank a newer Insert for the same RecordID and silently drop the row. Also gitignore .claude/ and .workbuddy/ runtime dirs.
12 lines
122 B
Plaintext
12 lines
122 B
Plaintext
.venv/
|
|
__pycache__/
|
|
*.pyc
|
|
logs/
|
|
*.log
|
|
.pytest_cache/
|
|
config.yaml
|
|
config.local.yaml
|
|
config.pilot.yaml
|
|
|
|
.claude/
|
|
.workbuddy/ |