Change creation script so that the trigger is syntactically correct