zitadel/cmd/setup/46/cockroach/04_create_trigger.sql

6 lines
168 B
MySQL
Raw Normal View History

2025-01-06 08:00:35 +01:00
CREATE TRIGGER reduce_instance_events
AFTER INSERT ON "queue"
2025-01-06 08:00:35 +01:00
FOR EACH ROW
WHEN (NEW).subscriber = 'transactional-instances'
2025-01-06 08:00:35 +01:00
EXECUTE FUNCTION reduce_instance_events();