Update database.php

This commit is contained in:
Namhyeon Go 2020-03-25 10:32:17 +09:00 committed by GitHub
parent 8c93ea1629
commit 80c0d01b81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1016,7 +1016,7 @@ if(!is_fn("exec_db_table_create")) {
// create event
foreach($setevent as $event) {
$sql = sprintf("create event `%s` on schedule at CURRENT_TIMESTAMP + INTERVAL %s MINUTES DO %s", $_tablename, $event['interval'], $event['query']);
$sql = sprintf("create event event_%s on schedule at CURRENT_TIMESTAMP + INTERVAL %s MINUTES DO (%s)", make_random_id(), $event['interval'], $event['query']);
exec_db_query($sql);
}
}