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 7 commits into from Dec 20, 2018


3 participants
Copy link

bah07 commented Dec 19, 2018

Related issue

  • Database auto-upgrade #2059


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.


  • 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 db label Dec 19, 2018

@bah07 bah07 requested a review from albertomn86 Dec 19, 2018

@crolopez crolopez self-requested a review Dec 20, 2018

@crolopez crolopez added this to Needs review in Wazuh 3.8.0 via automation Dec 20, 2018

albertomn86 added some commits 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 Dec 20, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment