The code for Create_before_employee_update_trig.sql is: DROP TRIGGER IF EXISTS before_employee_update; CREATE TRIGGER before_employee_update BEFORE UPDATE ON employees FOR EACH ROW INSERT INTO employees_audit SET `action` = 'update', employeeNumber = OLD.employeeNumber, lastname = OLD.lastname, changedat = NOW();