Skip to content

fix: migration 137 trigger + 138 idempotent indexes#47

Merged
0xmanhnv merged 1 commit into
mainfrom
develop
Apr 15, 2026
Merged

fix: migration 137 trigger + 138 idempotent indexes#47
0xmanhnv merged 1 commit into
mainfrom
develop

Conversation

@0xmanhnv
Copy link
Copy Markdown
Collaborator

137: Split branch finding count trigger into 3 (INSERT/UPDATE/DELETE)

  • INSERT can only reference NEW, DELETE only OLD
  • Fixes: "DELETE trigger's WHEN condition cannot reference NEW values"

138: Add IF NOT EXISTS to all CREATE INDEX

  • Prevents "relation already exists" on re-run after partial failure

137: Split branch finding count trigger into 3 (INSERT/UPDATE/DELETE)
  - INSERT can only reference NEW, DELETE only OLD
  - Fixes: "DELETE trigger's WHEN condition cannot reference NEW values"

138: Add IF NOT EXISTS to all CREATE INDEX
  - Prevents "relation already exists" on re-run after partial failure
@0xmanhnv 0xmanhnv merged commit 35a58b7 into main Apr 15, 2026
25 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