Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated DB's automatically from Wazuh-db #2147

Merged
merged 7 commits into from Dec 20, 2018
Merged

Conversation

bah07
Copy link
Contributor

@bah07 bah07 commented Dec 19, 2018

Related issue

Description

Since version 3.7 of Wazuh the databases are kept after an update, which implies that after installing a new version where the structure of the agent databases is modified, it forces us to update them.

By a field in the metadata table we know the database version that has an agent. After an update, Wazuh-db, it will check if it is necessary to update it.

Test

  • Update from 3.7.0 wazuh-manager and check if database structure becomes updated.
  • Check if Wazuh-db creates a backup in case of failing the update.
  • Check if the .template.db file is deleted (and recreating only when creating new DB) after an upgrading.

@bah07 bah07 added the module/db Wazuh DB engine label Dec 19, 2018
@crolopez crolopez self-requested a review December 20, 2018 12:49
@crolopez crolopez added this to Needs review in Wazuh 3.8.0 via automation Dec 20, 2018
@albertomn86 albertomn86 merged commit 21c8601 into 3.8 Dec 20, 2018
Wazuh 3.8.0 automation moved this from Needs review to Done Dec 20, 2018
@albertomn86 albertomn86 deleted the dev-wazuhdb-upgrade branch December 20, 2018 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/db Wazuh DB engine
Projects
No open projects
Wazuh 3.8.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants