Add missing 'IF EXISTS' to 'DROP EVENT' when exporting databases
Signed-off-by: Olivier Wahrenberger <O2Graphics@users.noreply.github.com>
This commit is contained in:
parent
788aed0c31
commit
ffc1a15885
@ -999,7 +999,7 @@ class ExportSql extends ExportPlugin
|
||||
|
||||
foreach ($event_names as $event_name) {
|
||||
if (! empty($GLOBALS['sql_drop_table'])) {
|
||||
$text .= 'DROP EVENT '
|
||||
$text .= 'DROP EVENT IF EXISTS '
|
||||
. Util::backquote($event_name)
|
||||
. $delimiter . $crlf;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user