0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-05-18 07:01:20 +00:00

Allow for an easy way to do metadata migrations ()

Allow for an easy way to migrate metadata to a new database schema (versioning)
This commit is contained in:
Stelios Fragkakis 2022-06-22 19:21:50 +03:00 committed by GitHub
parent 6bf5a67e14
commit ea927b87f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 79 additions and 2 deletions
database/sqlite

View file

@ -0,0 +1,11 @@
// SPDX-License-Identifier: GPL-3.0-or-later
#ifndef NETDATA_SQLITE_DB_MIGRATION_H
#define NETDATA_SQLITE_DB_MIGRATION_H
#include "daemon/common.h"
#include "sqlite3.h"
int perform_database_migration(sqlite3 *database, int target_version);
#endif //NETDATA_SQLITE_DB_MIGRATION_H