I am starting to use Codeception for a large existing website.
I want to use a dump file to restore the database. Our database makes use of procedures, triggers, functions and views. On cleanup, codeception only removes tables and triggers.
However, I get errors when it tries to create Triggers and Functions (and possibly the same errors when creating procedures and view, I haven't got that far)
This is the error message:
[Codeception\Exception\Module] (Exception in Db) SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near DELIMITER // CREATE TRIGGER players_weekly_delete AFTER DELETE ON players_wee at line 1
I have created a user for the test database with all privileges, and it also has the global SUPER privilege.
When I use the same dump and run it in HeidiSQL it works perfectly.
Does anyone have an idea why I get this error when trying to populate the database with the dump?
Or alternatively, does anyone know a way to make codeception remove only tables, and leave the triggers in place?