summaryrefslogtreecommitdiff
path: root/netconf/SqliteNetworkConfigMaster.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'netconf/SqliteNetworkConfigMaster.cpp')
-rw-r--r--netconf/SqliteNetworkConfigMaster.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/netconf/SqliteNetworkConfigMaster.cpp b/netconf/SqliteNetworkConfigMaster.cpp
index d4b552f9..8361a276 100644
--- a/netconf/SqliteNetworkConfigMaster.cpp
+++ b/netconf/SqliteNetworkConfigMaster.cpp
@@ -42,6 +42,11 @@
#include "../node/CertificateOfMembership.hpp"
#include "../node/NetworkConfig.hpp"
+// Stored in database as schemaVersion key in Config.
+// If not present, database is assumed to be empty and at the current schema version
+// and this key/value is added automatically.
+#define ZT_NETCONF_SQLITE_SCHEMA_VERSION 1
+
namespace ZeroTier {
SqliteNetworkConfigMaster::SqliteNetworkConfigMaster(const Identity &signingId,const char *dbPath) :