Skip to content

Claude/fix event rules tasks aj2aj#5

Merged
srdco merged 2 commits intomasterfrom
claude/fix-event-rules-tasks-Aj2aj
Mar 24, 2026
Merged

Claude/fix event rules tasks aj2aj#5
srdco merged 2 commits intomasterfrom
claude/fix-event-rules-tasks-Aj2aj

Conversation

@srdco
Copy link
Copy Markdown
Owner

@srdco srdco commented Mar 24, 2026

No description provided.

claude and others added 2 commits March 23, 2026 21:51
The event_after_insert trigger, which automatically creates tasks from
rules when an event is created, was dropped by the utf8mb4_0900_ai_ci
collation migration but not recreated on instances where the database
user lacked the log_bin_trust_function_creators privilege at migration
time. This left rules silently not firing on event creation, while the
manual recreate_tasks stored procedure still worked.

This migration drops and recreates the trigger with its original
definition. It guards the operation with a privilege check: if
log_bin_trust_function_creators cannot be set, it emits a clear warning
and aborts rather than dropping the trigger and leaving the database
broken. A similar warning is emitted if the CREATE TRIGGER itself fails
after the drop.

https://claude.ai/code/session_011sxfFyNJLM1JngEeGKFdoh
@srdco srdco merged commit 232f43a into master Mar 24, 2026
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.

2 participants