mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Resolved small bug with uninitialized sql dbs
This commit is contained in:
@@ -129,8 +129,13 @@ namespace mRemoteNG.Config.Connections
|
||||
try
|
||||
{
|
||||
var databaseVersion = GetDatabaseVersion(sqlConnection);
|
||||
|
||||
SqlCommand sqlCommand;
|
||||
|
||||
if (databaseVersion.Equals(new Version()))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if (databaseVersion.CompareTo(new Version(2, 2)) == 0) // 2.2
|
||||
{
|
||||
Runtime.MessageCollector.AddMessage(MessageClass.InformationMsg, $"Upgrading database from version {databaseVersion} to version 2.3.");
|
||||
|
||||
Reference in New Issue
Block a user