Skip to content
Snippets Groups Projects
Commit 30c2efa7 authored by Tomáš Plesník's avatar Tomáš Plesník
Browse files

pridano zaindexovani sloupcu po updatu databaze

parent 9b93f068
No related branches found
No related tags found
No related merge requests found
......@@ -32,9 +32,14 @@ B. Update steps
C. Post-update steps
--------------------
1) Update Warden server database
1) Upgrade Warden server database
$ mysql -u <user> -h localhost -p <password> < {warden-server_path}/doc/warden21to22.patch
ATTENTION: Running of the database update script may take a long time (in minutes - depending on the size of the database).
During this process the database will be not available!
$ mysql -u <user> -h localhost -p <password> < {warden-server_path}/doc/warden20to21.patch
2) Restart Apache server
......
......@@ -11,3 +11,8 @@ WHERE `events.hostname` = `clients.hostname` AND `events.service` = `clients.ser
ALTER TABLE `events`
DROP COLUMN `hostname`,
DROP COLUMN `service`;
ALTER TABLE `events`
ADD INDEX `idx_events_type_valid` (`type`,`valid`),
ADD INDEX `idx_events_client_id` (`client_id`),
ADD INDEX `idx_events_detected` (`detected`);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment