fix in DB upgrade procedure and schema init script
[public/netxms.git] / src / server / tools / nxdbmgr / upgrade.cpp
index ed8c1ae..e0fc347 100644 (file)
@@ -1977,6 +1977,7 @@ static BOOL H_UpgradeFromV383(int currVersion, int newVersion)
    static TCHAR batch[] =
       _T("ALTER TABLE graphs ADD flags integer\n")
       _T("ALTER TABLE graphs ADD filters $SQL:TEXT\n")
+      _T("UPDATE graphs SET flags=0\n")
       _T("<END>");
    CHK_EXEC(SQLBatch(batch));
    CHK_EXEC(SetSchemaVersion(384));