From 61d89bd1182273fb479a2eb250ce0cc452345d9b Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 12 Mar 2015 14:27:14 -0700 Subject: docs --- netconf/SqliteNetworkConfigMaster.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'netconf/SqliteNetworkConfigMaster.cpp') 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) : -- cgit v1.2.3