Add ddl_command_end support for event triggers.

Dimitri Fontaine, with slight changes by me