Skip to content

Commit

Permalink
IOStats backward compatibility fix
Browse files Browse the repository at this point in the history
Allow importing data collected from older DBA Dash instances.
  • Loading branch information
DavidWiseman committed May 9, 2023
1 parent e6a15b4 commit 01762f1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions DBADash/DBImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,18 @@ private void UpgradeDS()
dtCorruption.Columns.Add("CountOfRows", typeof(int));
}
}
if (data.Tables.Contains("IOStats"))
{
var dtIOStats = data.Tables["IOStats"];
if (!dtIOStats.Columns.Contains("drive"))
{
dtIOStats.Columns.Add("drive", typeof(char));
foreach (DataRow row in dtIOStats.Rows)
{
row["drive"] = "*";
}
}
}
}

public void Update()
Expand Down

0 comments on commit 01762f1

Please sign in to comment.