diff --git a/pandora_console/extras/mr/34.sql b/pandora_console/extras/mr/34.sql new file mode 100644 index 0000000000..7ed6610f1d --- /dev/null +++ b/pandora_console/extras/mr/34.sql @@ -0,0 +1,5 @@ +START TRANSACTION; + +ALTER TABLE `tevent_response` ADD COLUMN `command_timeout` int(5) unsigned NOT NULL DEFAULT 90; + +COMMIT; diff --git a/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql b/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql index e7f00559f9..3d40b68b41 100644 --- a/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql @@ -1776,6 +1776,7 @@ ALTER TABLE tserver ADD COLUMN exec_proxy tinyint(1) UNSIGNED NOT NULL default 0 -- Table `tevent_response` -- --------------------------------------------------------------------- ALTER TABLE tevent_response ADD COLUMN server_to_exec int(10) unsigned NOT NULL DEFAULT 0; +ALTER TABLE tevent_response ADD COLUMN command_timeout int(5) unsigned NOT NULL DEFAULT 90; -- --------------------------------------------------------------------- -- Table `tmodule` diff --git a/pandora_console/godmode/events/event_responses.editor.php b/pandora_console/godmode/events/event_responses.editor.php index c514ded346..80ca390b51 100644 --- a/pandora_console/godmode/events/event_responses.editor.php +++ b/pandora_console/godmode/events/event_responses.editor.php @@ -52,6 +52,7 @@ if ($event_response_id > 0) { $event_response['modal_height'] = 0; $event_response['params'] = ''; $event_response['server_to_exec'] = ''; + $event_response['command_timeout'] = 90; } $table = new stdClass(); @@ -175,6 +176,11 @@ $data[3] = '