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

Set a version number for the metadata database to better handle future data migrations #12249

Merged
merged 1 commit into from
Feb 28, 2022

Conversation

stelfrag
Copy link
Collaborator

Summary

Set a user defined version number for the netdata-meta.db so that future changes to the database
can include code to correctly handle migration of data.

Test Plan
  • Check the current netdata-meta.db file using the command like tool sqlite3
    • Type .dbinfo and notice the user version: 0 entry or type PRAGMA user_version to notice
    user_version
    ------------
    0  
    

After the PR is applied and running the agent, the number will be 1

@stelfrag stelfrag marked this pull request as ready for review February 25, 2022 16:16
@stelfrag stelfrag merged commit ebfaf8c into netdata:master Feb 28, 2022
@stelfrag stelfrag deleted the 0set_metadata_version branch March 1, 2022 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants