private static void SetDatabaseVersion(DAL db, string newVersion) { string command = String.Format("UPDATE Globals SET Value = '{0}' WHERE Block = 'Database' AND Key = 'Version';", newVersion); db.Execute(command); db.LogMessage(String.Format("Updated structure version to {0}", newVersion), "I"); db.DatabaseVersion = newVersion; }