Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Warden
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pavel Valach
Warden
Commits
30c2efa7
Commit
30c2efa7
authored
11 years ago
by
Tomáš Plesník
Browse files
Options
Downloads
Patches
Plain Diff
pridano zaindexovani sloupcu po updatu databaze
parent
9b93f068
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/warden-server/doc/UPDATE
+7
-2
7 additions, 2 deletions
src/warden-server/doc/UPDATE
src/warden-server/doc/warden21to22.patch
+5
-0
5 additions, 0 deletions
src/warden-server/doc/warden21to22.patch
with
12 additions
and
2 deletions
src/warden-server/doc/UPDATE
+
7
−
2
View file @
30c2efa7
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/warden-server/doc/warden21to22.patch
+
5
−
0
View file @
30c2efa7
...
...
@@ -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`);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment