fix(sql): wrap 73_complexes_master.sql in BEGIN/COMMIT #125
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#125
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/73-complexes-atomic"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Per code review audit (May 14):
data/sql/73_complexes_master.sqlбез transaction wrapper. Backfill INSERTs + view recreations были individual auto-commit statements. Mid-file crash → orphan data.Fix
BEGIN;at line 31 (после header comments)COMMIT;at end of fileNo CONCURRENTLY conflict
Все 10 indexes используют
CREATE INDEX IF NOT EXISTS(без CONCURRENTLY) → безопасно обернуть в одну tx.Idempotency preserved
Re-run safe.
Vault
fixes/Migration_73_Complexes_Atomic_May14.md— created.Closes audit critical #5.
Bot review
Тривиальный wrap, 2 строки:
✅
BEGIN;после header,COMMIT;в конце → 6 секций (CREATE TABLE / 10 INDEX / backfill INSERTs / DROP+CREATE VIEW) атомарны✅ Нет CONCURRENTLY-индексов — все используют
CREATE INDEX IF NOT EXISTSбез CONCURRENTLY, что совместимо с явной транзакцией (CONCURRENTLY запрещено внутри tx block)✅ Idempotency сохранена:
CREATE TABLE/INDEX IF NOT EXISTS,ON CONFLICT DO NOTHING,DROP VIEW IF EXISTS— re-run safeCI
Мерджу когда оба зелёные.
Tracking: part of audit batch #127. Vault:
fixes/Migration_73_Complexes_Atomic_May14.md.Final review (SHA
f65f03c, CI ✅)approve merge